add theme1 with subnavigation first setup kind of ugly layout

This commit is contained in:
2015-10-12 18:09:33 +02:00
parent ea287f2305
commit a3b3536adc
8 changed files with 103 additions and 4 deletions
@@ -0,0 +1,6 @@
ul
- for ancestor in @page.ancestors
li.ancestor= link_to ancestor.menu_text.presence || ancestor.title, go_to_page_path(ancestor)
/li.current[class=(@sub_pages.present? ? :ancestor : nil)]= link_to @page.menu_text.presence || @page.title, go_to_page_path(@page)
- for sub_page in @sub_pages || []
li[ class=(sub_page == @page ? [:current, :subpage] : [:subpage])]= link_to sub_page.menu_text.presence || sub_page.title, go_to_page_path(sub_page)