summaryrefslogtreecommitdiff
path: root/source/_navigation.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'source/_navigation.html.haml')
-rw-r--r--source/_navigation.html.haml35
1 files changed, 6 insertions, 29 deletions
diff --git a/source/_navigation.html.haml b/source/_navigation.html.haml
index 2a48201..972f9dc 100644
--- a/source/_navigation.html.haml
+++ b/source/_navigation.html.haml
@@ -1,28 +1,5 @@
-- @navigation = {
-- ["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"]
-- ]
-- }
+- @navigation = navigation_items
+
.navbar-header
%button.navbar-toggle{"data-target" => "#nav-big", "data-toggle" => "collapse", :type => "button"}
%span.sr-only Toggle navigation
@@ -33,10 +10,10 @@
%ul
- @navigation.each do |key, value|
%li.dropdown
- <a data-toggle="dropdown" class="dropdown-toggle" href=#{key.last}>
- \#{key.first}
- - if value
- %b.caret
+ %a{"data-toggle" => "dropdown", :class => "dropdown-toggle", :href => key.last}
+ = key.first
+ - if value
+ %b.caret
- if value
%ul.dropdown-menu
- value.each do |name, url|