Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 1 | {# |
| 2 | requires, brand, top_bar_items, footer_items, copyright, content |
| 3 | #} |
| 4 | |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 5 | {% extends "html/base.html" %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 6 | |
| 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 Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame^] | 17 | <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;" |
| 25 | {% endif %} |
| 26 | {{ page.target or ''}}> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 27 | {{ page.label }} |
| 28 | {% if page.child_items %} |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame^] | 29 | <b class="caret"></b> |
| 30 | </a> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 31 | <ul class="dropdown-menu"> |
| 32 | {% for child in page.child_items %} |
| 33 | <li data-label="{{ child.label }}"> |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame^] | 34 | <a href="{{ child.url }}" {{ child.target or '' }}> |
| 35 | {{ child.label }} |
| 36 | </a> |
| 37 | </li> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 38 | {% endfor %} |
| 39 | </ul> |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame^] | 40 | {% else %} |
| 41 | </a> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 42 | {% endif %} |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame^] | 43 | </li> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 44 | {% endif %} |
| 45 | {% endfor %} |
| 46 | </ul> |
| 47 | <img src="images/lib/ui/spinner.gif" id="spinner"/> |
| 48 | <ul class="nav pull-right"> |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 49 | <li id="login-topbar-item"><a href="login.html">Login</a></li> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 50 | </ul> |
| 51 | </div> |
| 52 | </div> |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame^] | 53 | </div> |
| 54 | <script>$('.dropdown-toggle').dropdown()</script> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 55 | </header> |
| 56 | <div id="body_div"> |
| 57 | <div class="content" id="page-{{ name }}" style="display: block;"> |
| 58 | {% block content %} |
| 59 | {% endblock %} |
| 60 | </div> |
| 61 | </div> |
| 62 | <footer><div class="web-footer"> |
| 63 | <div class="web-footer-menu"><ul> |
| 64 | {% for item in footer_items %} |
| 65 | <li><a href="{{ item.url }}" {{ item.target }} |
| 66 | data-label="{{ item.label }}">{{ item.label }}</a></li> |
| 67 | {% endfor %} |
| 68 | </ul></div> |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 69 | {% if copyright %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 70 | <div class="web-footer-copyright">© {{ copyright }} |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 71 | {% endif %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 72 | </div> |
| 73 | </footer> |
| 74 | |
| 75 | {% endblock %} |