2014-09-17 12:42:37 +03:00
|
|
|
doctype html
|
|
|
|
|
|
|
|
html
|
|
|
|
head
|
|
|
|
meta charset="utf-8"
|
|
|
|
meta http-equiv="X-UA-Compatible" content="IE=edge"
|
|
|
|
meta name="viewport" content="width=device-width, initial-scale=1"
|
2014-10-14 15:04:44 +03:00
|
|
|
title
|
|
|
|
- if content_for? :title
|
2014-10-14 20:34:33 +03:00
|
|
|
=> content_for :title
|
2014-10-14 15:04:44 +03:00
|
|
|
| | Clarion
|
|
|
|
- else
|
|
|
|
| Clarion
|
|
|
|
|
2014-09-17 12:42:37 +03:00
|
|
|
= stylesheet_link_tag "management/application"
|
|
|
|
= csrf_meta_tags
|
|
|
|
body
|
2014-10-14 15:04:44 +03:00
|
|
|
nav.navigation role="navigation"
|
|
|
|
.header
|
|
|
|
= button_tag type: 'button', class: 'toggle', data: {toggle: 'collapse', target: '.collapsable'}
|
|
|
|
span.sr-only Toggle Navigation
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
= link_to management_path, class: 'brand'
|
|
|
|
| Clarion
|
|
|
|
ul.right-menu.collapsable
|
2014-10-15 00:18:11 +03:00
|
|
|
- if @conference.present?
|
|
|
|
li.dropdown
|
|
|
|
a.dropdown-toggle href="#" data-toggle="dropdown"
|
|
|
|
i.fa.fa-users.fa-fw>
|
|
|
|
span = @conference.title
|
|
|
|
span.caret<
|
|
|
|
- if Conference.count > 1
|
|
|
|
ul.dropdown-menu role="menu"
|
|
|
|
- Conference.where.not(id: @conference.id).each do |conference|
|
|
|
|
li
|
|
|
|
= link_to conference.title, management_conference_path(conference)
|
2014-10-14 15:04:44 +03:00
|
|
|
li.dropdown
|
|
|
|
a.dropdown-toggle href="#" data-toggle="dropdown"
|
2014-10-15 00:18:11 +03:00
|
|
|
i.fa.fa-flag.fa-fw>
|
|
|
|
span = t "locales.#{I18n.locale}"
|
2014-10-14 15:04:44 +03:00
|
|
|
span.caret<
|
|
|
|
ul.dropdown-menu role="menu"
|
2014-10-15 00:18:11 +03:00
|
|
|
- I18n.available_locales.each do |locale|
|
|
|
|
li.text-center
|
|
|
|
= link_to t("locales.#{locale}"), "?locale=#{locale}"
|
2014-10-14 15:04:44 +03:00
|
|
|
.sidebar.collapsable
|
|
|
|
ul.nav#side-menu
|
2014-10-14 21:04:01 +03:00
|
|
|
li class="#{controller_name == 'conferences' ? 'active' : nil}"
|
|
|
|
= link_to management_conferences_path
|
2014-10-15 11:48:01 +03:00
|
|
|
= fa_icon 'group fw', text: Conference.model_name.human(count: 2).mb_chars.capitalize
|
|
|
|
ul.nav.nav-second-level
|
|
|
|
- Conference.all.each do |conference|
|
|
|
|
li
|
|
|
|
= link_to conference.title, management_conference_path(conference)
|
|
|
|
li class="#{controller_name == 'users' ? 'active' : nil}"
|
|
|
|
= link_to management_users_path
|
|
|
|
= fa_icon 'user fw', text: User.model_name.human(count: 2).mb_chars.capitalize
|
|
|
|
|
2014-10-10 19:10:34 +03:00
|
|
|
|
2014-10-14 15:04:44 +03:00
|
|
|
div.content#page-wrapper
|
2014-09-17 12:42:37 +03:00
|
|
|
== yield
|
|
|
|
= javascript_include_tag "management/application"
|