clarion/app/views/layouts/management/_navigation.html.slim

31 lines
1.1 KiB
Plaintext
Raw Normal View History

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
- 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)
li.dropdown
a.dropdown-toggle href="#" data-toggle="dropdown"
i.fa.fa-flag.fa-fw>
span = t "locales.#{I18n.locale}"
span.caret<
ul.dropdown-menu role="menu"
- I18n.available_locales.each do |locale|
li.text-center
= link_to t("locales.#{locale}"), "?locale=#{locale}"