blob: 55e8094b3d51a105ce375abe23bbe88e8ec6efbf [file] [log] [blame]
Rushabh Mehtabed19ac2013-03-21 17:12:25 +05301<div class="navbar navbar-inverse" style="">
Rushabh Mehta770e7932013-03-11 18:30:05 +05302 <div class="navbar-inner">
Rushabh Mehtabed19ac2013-03-21 17:12:25 +05303 {%- if brand_html %}<a class="brand" href="index">{{ brand_html }}</a>{% endif -%}
Rushabh Mehta770e7932013-03-11 18:30:05 +05304 <div class="container">
5 <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
6 <span class="icon-bar"></span>
7 <span class="icon-bar"></span>
8 <span class="icon-bar"></span>
9 </button>
10 <div class="nav-collapse collapse">
11 <ul class="nav">
Rushabh Mehtabed19ac2013-03-21 17:12:25 +053012 {%- for page in top_bar_items -%}
13 {% if not page.parent_label -%}
14 <li data-label="{{ page.label }}" {% if page.child_items %} class="dropdown"{% endif %}>
15 <a href="{{ page.url or '#' }}" {% if page.child_items %} class="dropdown-toggle" onclick="return false;" data-toggle="dropdown"{% endif %} {{ page.target or ''}}>
16 {{ page.label }}
17 {%- if page.child_items -%}
18 <b class="caret"></b>
19 </a>
20 <ul class="dropdown-menu">
21 {%- for child in page.child_items -%}
22 <li data-label="{{ child.label }}">
23 <a {% if child.indent %} style="padding-left: {{(int(child.indent)+1)*15 }}px"{% endif %} href="{{ child.url }}" {{ child.target or '' }}>{{ child.label }}</a>
24 </li>
25 {%- endfor -%}
26 </ul>
27 {%- else -%}
28 </a>
29 {%- endif -%}
30 </li>
31 {%- endif -%}
32 {%- endfor %}
Rushabh Mehta770e7932013-03-11 18:30:05 +053033 </ul>
Rushabh Mehta770e7932013-03-11 18:30:05 +053034 </div>
35 </div>
36 </div>
37</div>
38<script>$('.dropdown-toggle').dropdown()</script>