2015-04-20 15:42:39 +03:00
|
|
|
nav.navbar.navbar-static-top.navbar-inverse role="navigation"
|
|
|
|
.container
|
|
|
|
.navbar-header
|
|
|
|
= button_tag type: 'button', class: 'navbar-toggle', data: {toggle: 'collapse', target: '.navbar-inverse-collapse'}
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
|
|
|
span.icon-bar
|
2015-05-30 17:07:57 +03:00
|
|
|
|
|
|
|
= link_to management_root_path, class: 'navbar-brand'
|
2015-04-20 15:42:39 +03:00
|
|
|
| Clarion
|
2015-05-10 13:36:29 +03:00
|
|
|
|
2015-04-20 15:42:39 +03:00
|
|
|
.navbar-collapse.collapse.navbar-inverse-collapse
|
2015-05-30 17:07:57 +03:00
|
|
|
- if current_conference?
|
2015-04-20 15:42:39 +03:00
|
|
|
ul.nav.navbar-nav
|
2015-05-30 17:07:57 +03:00
|
|
|
li
|
2015-05-30 17:57:43 +03:00
|
|
|
= link_to [:management, current_conference]
|
2015-04-20 15:42:39 +03:00
|
|
|
=> icon 'users', class: 'fa-fw'
|
2015-05-30 17:07:57 +03:00
|
|
|
= current_conference.title
|
2015-04-29 13:00:17 +03:00
|
|
|
|
2015-05-30 17:07:57 +03:00
|
|
|
li class="#{'active' if controller_name == 'events'}"
|
2015-07-19 11:44:44 +03:00
|
|
|
= link_to [:management, current_conference, :events] do
|
2015-05-30 17:07:57 +03:00
|
|
|
=> icon 'file-text', Event.model_name.human(count: 2).mb_chars.capitalize, class: 'fa-fw'
|
2015-07-28 15:43:19 +03:00
|
|
|
li class="#{'active' if controller_name == 'personal_profiles'}"
|
|
|
|
= link_to [:management, current_conference, :personal_profiles] do
|
|
|
|
=> icon 'user', t('activerecord.models.personal_profile', count: 2).mb_chars.capitalize, class: 'fa-fw'
|
2016-10-07 04:42:19 +03:00
|
|
|
/ li class="#{'active' if controller_name == 'sponsorship_offers'}"
|
|
|
|
/ = link_to '#' do
|
|
|
|
/ => icon 'money', t('activerecord.models.sponsorship_offer', count: 2).mb_chars.capitalize, class: 'fa-fw'
|
2015-05-30 17:07:57 +03:00
|
|
|
li class="#{'active' if controller_name == 'volunteerships'}"
|
|
|
|
= link_to '#' do
|
|
|
|
=> icon 'hand-o-up', t('activerecord.models.volunteership', count: 2).mb_chars.capitalize, class: 'fa-fw'
|
2016-10-07 04:42:19 +03:00
|
|
|
/ li class="#{'active' if controller_name == 'propositions'}"
|
|
|
|
/ = link_to [:management, current_conference, :propositions] do
|
|
|
|
/ => icon 'question', Proposition.model_name.human(count: 2).mb_chars.capitalize, class: 'fa-fw'
|
2015-04-29 13:00:17 +03:00
|
|
|
|
2015-04-20 15:42:39 +03:00
|
|
|
ul.nav.navbar-nav.navbar-right
|
|
|
|
li.dropdown
|
|
|
|
= link_to '#', class: 'dropdown-toggle', data: {toggle: 'dropdown'} do
|
|
|
|
=> icon 'flag', class: 'fa-fw'
|
|
|
|
= t("locales.#{I18n.locale}")
|
|
|
|
span.caret<
|
2015-04-20 15:03:02 +03:00
|
|
|
ul.dropdown-menu role="menu"
|
2015-04-20 15:42:39 +03:00
|
|
|
- I18n.available_locales.each do |locale|
|
|
|
|
li.text-center
|
|
|
|
= link_to t("locales.#{locale}"), "?locale=#{locale}"
|
|
|
|
- if user_signed_in?
|
|
|
|
li
|
2015-08-15 03:42:33 +03:00
|
|
|
= link_to destroy_user_session_path, method: :delete do
|
2015-04-20 15:42:39 +03:00
|
|
|
= icon 'sign-out', t('sessions.sign_out')
|