summaryrefslogtreecommitdiff
path: root/source/_navigation.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'source/_navigation.html.erb')
-rw-r--r--source/_navigation.html.erb78
1 files changed, 57 insertions, 21 deletions
diff --git a/source/_navigation.html.erb b/source/_navigation.html.erb
index e3b1687..65ba820 100644
--- a/source/_navigation.html.erb
+++ b/source/_navigation.html.erb
@@ -1,22 +1,58 @@
-<div id="nav">
- <ul class="nav nav-pills">
- <li class="active">
- <%= link_to "Home", "/" %>
+<%
+
+ @navigation = {
+
+ ["Home", "/"] => nil,
+
+ ["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/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"]
+ ]
+
+}
+
+%>
+<ul>
+
+ <% @navigation.each do |key, value| %>
+ <li class="dropdown">
+ <a data-toggle="dropdown" class="dropdown-toggle" href=<%= key.last %>>
+ <%= key.first %>
+ <% if value %>
+ <b class="caret"></b>
+ <% end %>
+ </a>
+ <% if value %>
+ <ul class="dropdown-menu">
+ <% value.each do |name, url| %>
+ <li><%= link_to(name, url) %></li>
+ <% end %>
+ </ul>
+ <% end %>
</li>
- <li>
- <%= link_to "Aktuelles", "/aktuelles/index.html" %>
- </li>
- <li>
- <%= link_to "Entdecken", "/entdecken/index.html" %>
- </li>
- <li>
- <%= link_to "Mitmachen!", "/mitmachen/index.html" %>
- </li>
- <li>
- <%= link_to "Unterstützen!", "/unterstuetzen/index.html" %>
- </li>
- <li>
- <%= link_to "Kontakt", "/kontakt/index.html" %>
- </li>
- </ul>
-</div>
+ <% end %>
+
+</ul>