Files
mozo-backend/app/views/theme1/_navigation.html.slim
T
2015-01-13 18:08:21 +01:00

9 lines
550 B
Plaintext

a.menu-secondary-toggle href="#"
span
ul.nav
li[class=(current_page?(controller: '/pages', action: 'home') ? :active : nil)]= link_to find_page('home').try(:menu_text), locale_root_path
li[class=(current_page?(controller: '/pages', action: 'show', name: 'about') ? :active : nil)]= link_to find_page('about').try(:menu_text), page_path('about')
ul.nav.secondary
- Page.menu_roots.each do |page|
li[class=(current_page?(controller: '/pages', action: 'show', name: page.name) ? :active : nil)]= link_to page.menu_text, page_path(page.name)