diff options
author | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-10-07 21:27:36 +0200 |
---|---|---|
committer | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-10-07 22:13:15 +0200 |
commit | b0635f5a15215912cd3d34df7a57bcd5215baa45 (patch) | |
tree | f2b945e1b5f7e4e3ebb625e563d87407f6017ba9 | |
parent | 2fc1911018002a023f20b668f405032f4223d22e (diff) |
remove navigation helper and put it in the template instead
-rw-r--r-- | helpers/navigation_helpers.rb | 31 | ||||
-rw-r--r-- | source/_navigation.html.haml | 38 |
2 files changed, 29 insertions, 40 deletions
diff --git a/helpers/navigation_helpers.rb b/helpers/navigation_helpers.rb deleted file mode 100644 index f4cd56e..0000000 --- a/helpers/navigation_helpers.rb +++ /dev/null @@ -1,31 +0,0 @@ -module NavigationHelpers - - def navigation_items - { - ["Aktuelles", "/aktuelles/index.html"] => [ - ["Blog", "/aktuelles/blog.html"], - ["Kalender", "/aktuelles/kalender.html"] - ], - ["Entdecken", "/entdecken/index.html"] => [ - ["Die Räume", "/entdecken/raeume.html"], - ["Der Verein", "/entdecken/verein.html"], - ["Das Wiki", "/entdecken/wiki.html"], - ["Mailinglisten", "/entdecken/mailinglisten.html"] - ], - ["Mitmachen!", "/mitmachen/index.html"] => [ - ["Projekte", "/mitmachen/projekte.html"], - ["Regelmässige Treffen", "/mitmachen/regelmaessige_termine.html"] - ], - ["Unterstützen", "/unterstuetzen/index.html"] => [ - ["Mitglied werden", "/unterstuetzen/mitglied_werden.html"], - ["Förderer", "/unterstuetzen/foerderer.html"], - ["Sponsoren", "/unterstuetzen/sponsoren.html"] - ], - ["Kontakt", "/kontakt/index.html"] => [ - ["Wegbeschreibung", "/kontakt/lage.html"], - ["Kontaktmöglichkeiten", "/kontakt/kontakt.html"] - ] - } - end - -end diff --git a/source/_navigation.html.haml b/source/_navigation.html.haml index 05d21e7..d46e7ec 100644 --- a/source/_navigation.html.haml +++ b/source/_navigation.html.haml @@ -1,5 +1,3 @@ -- @navigation = navigation_items - .contain-to-grid %nav.top-bar{"role" => "navigation", "data-topbar" => true, "data-options" => "is_hover: false"} %ul.title-area @@ -12,11 +10,33 @@ %section.top-bar-section %ul.left - - @navigation.each do |key, value| - %li.has-dropdown - %a{href: "#"} - = key.first - %ul.dropdown - - value.each do |name, url| - %li= link_to(name, url) + %li.has-dropdown + %a{href: "#"} + Aktuelles + %ul.dropdown + %li= link_to("News", "/aktuelles/blog.html") + %li= link_to("Termine", "/aktuelles/kalender.html") + + %li.has-dropdown + %a{href: "#"} + Entdecken + %ul.dropdown + %li= link_to("Die Räume", "/entdecken/raeume.html") + %li= link_to("Der Verein", "/entdecken/verein.html") + %li= link_to("Das Wiki", "/entdecken/wiki.html") + %li= link_to("Mailinglisten", "/entdecken/mailinglisten.html") + %li= link_to("Code", "/entdecken/code.html") + + %li + = link_to("Projekte", "/mitmachen/projekte.html") + + %li.active + = link_to("Mitglied werden", "/unterstuetzen/mitglied_werden.html") + + %li.has-dropdown + %a{href: "#"} + Kontakt + %ul.dropdown + %li= link_to("Wegbeschreibung", "/kontakt/lage.html") + %li= link_to("Kontaktmöglichkeiten", "/kontakt/kontakt.html") |