summaryrefslogtreecommitdiff
path: root/source/_navigation.html.haml
diff options
context:
space:
mode:
authorLars Henrik Mai <lars.mai@kontinui.de>2014-09-21 11:57:48 +0200
committerLars Henrik Mai <lars.mai@kontinui.de>2014-09-21 11:57:48 +0200
commit33fe06d9edd5bc3a637e5b0e5f979dbced8f95d0 (patch)
tree5d8370d7dd2f0ecae9de7b35fb7d952e841b4e0b /source/_navigation.html.haml
parent35239fc1f4641db1e602383b43cc29b151cde9b9 (diff)
parentf3100ad9d93fd31a043594815e260958f5ceaff0 (diff)
Merge branch 'convert-templates-to-haml' into next-tech-1
Diffstat (limited to 'source/_navigation.html.haml')
-rw-r--r--source/_navigation.html.haml20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/_navigation.html.haml b/source/_navigation.html.haml
new file mode 100644
index 0000000..972f9dc
--- /dev/null
+++ b/source/_navigation.html.haml
@@ -0,0 +1,20 @@
+- @navigation = navigation_items
+
+.navbar-header
+ %button.navbar-toggle{"data-target" => "#nav-big", "data-toggle" => "collapse", :type => "button"}
+ %span.sr-only Toggle navigation
+ %span.icon-bar
+ %span.icon-bar
+ %span.icon-bar
+#nav-big.collapse.navbar-collapse
+ %ul
+ - @navigation.each do |key, value|
+ %li.dropdown
+ %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|
+ %li= link_to(name, url)