blob: a671d985d16ce0fc74015f703bc264cf5ddc730e [file] [log] [blame]
Rushabh Mehtabd7f7232012-06-15 14:00:06 +05301{#
2 requires, brand, top_bar_items, footer_items, copyright, content
3#}
4
Anand Doshi51146c02012-07-12 18:41:12 +05305{% extends "html/base.html" %}
Rushabh Mehtabd7f7232012-06-15 14:00:06 +05306
7{% block body %}
8
9 <header>
10 <div class="navbar navbar-fixed-top">
11 <div class="navbar-inner">
12 <div class="container">
13 <a class="brand" href="index.html">{{ brand }}</a>
14 <ul class="nav">
15 {% for page in top_bar_items %}
16 {% if not page.parent_label %}
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053017 <li data-label="{{ page.label }}"
18 {% if page.child_items %}
19 class="dropdown"
20 {% endif %}>
21 <a href="{{ page.url or '#' }}"
22 {% if page.child_items %}
23 class="dropdown-toggle"
24 onclick="return false;"
Rushabh Mehta0a0be772012-09-05 13:48:45 +053025 data-toggle="dropdown"
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053026 {% endif %}
27 {{ page.target or ''}}>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053028 {{ page.label }}
29 {% if page.child_items %}
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053030 <b class="caret"></b>
31 </a>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053032 <ul class="dropdown-menu">
33 {% for child in page.child_items %}
34 <li data-label="{{ child.label }}">
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053035 <a href="{{ child.url }}" {{ child.target or '' }}>
36 {{ child.label }}
37 </a>
38 </li>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053039 {% endfor %}
40 </ul>
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053041 {% else %}
42 </a>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053043 {% endif %}
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053044 </li>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053045 {% endif %}
46 {% endfor %}
47 </ul>
48 <img src="images/lib/ui/spinner.gif" id="spinner"/>
49 <ul class="nav pull-right">
Anand Doshi51146c02012-07-12 18:41:12 +053050 <li id="login-topbar-item"><a href="login.html">Login</a></li>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053051 </ul>
52 </div>
53 </div>
Rushabh Mehtaa9302b02012-09-05 12:32:19 +053054 </div>
55 <script>$('.dropdown-toggle').dropdown()</script>
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053056 </header>
57 <div id="body_div">
58 <div class="content" id="page-{{ name }}" style="display: block;">
59 {% block content %}
60 {% endblock %}
61 </div>
62 </div>
63 <footer><div class="web-footer">
64 <div class="web-footer-menu"><ul>
65 {% for item in footer_items %}
66 <li><a href="{{ item.url }}" {{ item.target }}
67 data-label="{{ item.label }}">{{ item.label }}</a></li>
68 {% endfor %}
69 </ul></div>
Anand Doshi51146c02012-07-12 18:41:12 +053070 {% if copyright %}
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053071 <div class="web-footer-copyright">&copy; {{ copyright }}
Anand Doshi51146c02012-07-12 18:41:12 +053072 {% endif %}
Rushabh Mehtabd7f7232012-06-15 14:00:06 +053073 </div>
74 </footer>
75
76{% endblock %}