summaryrefslogtreecommitdiff
path: root/source/_navigation.html.haml
blob: 972f9dc2c319149137602398f75cd59611fdb1ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)