Tweak navbar
This commit is contained in:
parent
845eb891b1
commit
ddd18c256f
|
@ -25,24 +25,27 @@ html
|
||||||
= link_to management_path, class: 'brand'
|
= link_to management_path, class: 'brand'
|
||||||
| Clarion
|
| Clarion
|
||||||
ul.right-menu.collapsable
|
ul.right-menu.collapsable
|
||||||
|
- if @conference.present?
|
||||||
li.dropdown
|
li.dropdown
|
||||||
a.dropdown-toggle href="#" data-toggle="dropdown"
|
a.dropdown-toggle href="#" data-toggle="dropdown"
|
||||||
i.fa.fa-users.fa-fw>
|
i.fa.fa-users.fa-fw>
|
||||||
span = Conference.current.title
|
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<
|
span.caret<
|
||||||
ul.dropdown-menu role="menu"
|
ul.dropdown-menu role="menu"
|
||||||
- Conference.all.each do |conference|
|
- I18n.available_locales.each do |locale|
|
||||||
li
|
li.text-center
|
||||||
= link_to conference.title, '#'
|
= link_to t("locales.#{locale}"), "?locale=#{locale}"
|
||||||
|
|
||||||
li
|
|
||||||
a href="#"
|
|
||||||
i.fa.fa-flag.fa-fw>
|
|
||||||
span = I18n.locale
|
|
||||||
li
|
|
||||||
a href="#"
|
|
||||||
i.fa.fa-cogs.fa-fw>
|
|
||||||
span = t :settings
|
|
||||||
.sidebar.collapsable
|
.sidebar.collapsable
|
||||||
ul.nav#side-menu
|
ul.nav#side-menu
|
||||||
li
|
li
|
||||||
|
|
|
@ -20,6 +20,9 @@
|
||||||
# available at http://guides.rubyonrails.org/i18n.html.
|
# available at http://guides.rubyonrails.org/i18n.html.
|
||||||
|
|
||||||
bg:
|
bg:
|
||||||
|
locales:
|
||||||
|
bg: БГ
|
||||||
|
en: EN
|
||||||
actions:
|
actions:
|
||||||
create:
|
create:
|
||||||
button: Създай %{model}
|
button: Създай %{model}
|
||||||
|
|
Loading…
Reference in New Issue