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.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)