2011-03-31 00:10:23 +01:00
|
|
|
!!!
|
|
|
|
%html
|
|
|
|
%head
|
2014-01-21 04:51:49 +00:00
|
|
|
%meta{content: "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
|
|
|
|
= stylesheet_link_tag 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css', media: 'screen, projection'
|
2012-02-08 14:01:00 +00:00
|
|
|
= stylesheet_link_tag "application"
|
2012-03-29 23:51:39 +01:00
|
|
|
/[if lt IE 9]
|
2012-04-02 12:01:16 +01:00
|
|
|
= javascript_include_tag 'https://html5shiv.googlecode.com/svn/trunk/html5.js'
|
2013-09-01 13:06:42 +01:00
|
|
|
= javascript_include_tag 'application'
|
|
|
|
= javascript_include_tag 'moment/ru.js' if I18n.locale == :ru
|
2011-03-31 00:10:23 +01:00
|
|
|
= csrf_meta_tag
|
2014-01-21 04:51:49 +00:00
|
|
|
= display_meta_tags site: APP_CONFIG['project_name'], reverse: true, separator: '-'
|
2012-04-19 15:37:20 +01:00
|
|
|
- if user_signed_in?
|
2014-01-21 04:51:49 +00:00
|
|
|
= auto_discovery_link_tag :atom, atom_activity_feeds_path(format: 'atom', token: current_user.authentication_token), title: t("layout.atom_link_tag_title", nickname: current_user.uname, app_name: APP_CONFIG['project_name'])
|
2011-10-14 07:35:25 +01:00
|
|
|
|
2013-08-20 21:10:25 +01:00
|
|
|
%body{'ng-app' => 'RosaABF', 'ng-controller' => 'RosaABFController', 'ng-init' => "init('#{I18n.locale}', #{!!current_user.try(:sound_notifications)})"}
|
2014-01-21 04:51:49 +00:00
|
|
|
.wrap{class: content_for?(:sidebar) ? 'columns' : ''}
|
2012-02-08 14:01:00 +00:00
|
|
|
%header
|
|
|
|
.left
|
|
|
|
.middle
|
|
|
|
%menu
|
2014-01-21 04:51:49 +00:00
|
|
|
.logo= link_to image_tag('logo-mini.png', alt: 'logo'), root_path
|
|
|
|
= render 'layouts/menu/top', which_menu: 'top_menu'
|
2012-02-08 14:01:00 +00:00
|
|
|
.information
|
2012-03-06 15:53:04 +00:00
|
|
|
= render 'search/form'
|
2012-03-29 23:51:39 +01:00
|
|
|
- if current_user
|
|
|
|
.user
|
2014-01-21 04:51:49 +00:00
|
|
|
.avatar= image_tag avatar_url(current_user), alt: 'avatar', height: "30"
|
2012-03-29 23:51:39 +01:00
|
|
|
.profile
|
2014-01-21 04:51:49 +00:00
|
|
|
%a{href: "#"}
|
2012-03-29 23:51:39 +01:00
|
|
|
= current_user.uname
|
2014-01-21 04:51:49 +00:00
|
|
|
= image_tag 'expand-white.png', alt: 'ex'
|
2012-03-29 23:51:39 +01:00
|
|
|
.both
|
2012-02-16 23:07:22 +00:00
|
|
|
.both
|
2012-03-29 23:51:39 +01:00
|
|
|
.droplist-wrap
|
|
|
|
#droplist.droplist
|
|
|
|
.a= link_to current_user.uname, current_user
|
2012-05-02 10:18:07 +01:00
|
|
|
.a= link_to t('layout.settings.label'), profile_settings_path
|
2014-01-21 04:51:49 +00:00
|
|
|
.a= link_to t('layout.logout'), destroy_user_session_path, method: :delete
|
2012-03-29 23:51:39 +01:00
|
|
|
- else
|
|
|
|
.user
|
2013-04-11 12:48:26 +01:00
|
|
|
.profile= link_to t("layout.devise.shared_links.sign_up"), new_register_request_path
|
2012-03-29 23:51:39 +01:00
|
|
|
.profile= link_to t("layout.devise.shared_links.sign_in"), new_user_session_path
|
2012-02-08 14:01:00 +00:00
|
|
|
.right
|
|
|
|
.both
|
2012-03-01 17:33:46 +00:00
|
|
|
- if content_for?(:submenu)
|
|
|
|
.sub-menu= yield :submenu
|
2012-03-15 17:52:54 +00:00
|
|
|
- if content_for?(:feed_tabs)
|
|
|
|
= yield :feed_tabs
|
2012-03-21 10:48:06 +00:00
|
|
|
.both
|
2013-08-28 16:15:28 +01:00
|
|
|
= render 'layouts/noscript'
|
2012-03-21 10:48:06 +00:00
|
|
|
= render "layouts/flashes"
|
2012-07-23 15:25:37 +01:00
|
|
|
= render "layouts/notifies"
|
2012-02-08 14:01:00 +00:00
|
|
|
%article
|
|
|
|
- if content_for?(:sidebar)
|
|
|
|
%aside= yield :sidebar
|
2014-01-21 04:51:49 +00:00
|
|
|
%div{class: layout_class}= yield
|
2012-02-08 14:01:00 +00:00
|
|
|
.both
|
2011-03-31 00:10:23 +01:00
|
|
|
|
2012-02-08 14:01:00 +00:00
|
|
|
%footer= render "layouts/menu/bottom"
|
2012-07-18 10:43:17 +01:00
|
|
|
= render 'layouts/counters' if !current_user.try(:admin?) && Rails.env.production?
|