summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helpers/navigation_helpers.rb31
-rw-r--r--source/_navigation.html.haml38
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")