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;" |
Rushabh Mehta | 0a0be77 | 2012-09-05 13:48:45 +0530 | [diff] [blame] | 25 | data-toggle="dropdown" |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 26 | {% endif %} |
| 27 | {{ page.target or ''}}> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 28 | {{ page.label }} |
| 29 | {% if page.child_items %} |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 30 | <b class="caret"></b> |
| 31 | </a> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 32 | <ul class="dropdown-menu"> |
| 33 | {% for child in page.child_items %} |
| 34 | <li data-label="{{ child.label }}"> |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 35 | <a href="{{ child.url }}" {{ child.target or '' }}> |
| 36 | {{ child.label }} |
| 37 | </a> |
| 38 | </li> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 39 | {% endfor %} |
| 40 | </ul> |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 41 | {% else %} |
| 42 | </a> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 43 | {% endif %} |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 44 | </li> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 45 | {% endif %} |
| 46 | {% endfor %} |
| 47 | </ul> |
| 48 | <img src="images/lib/ui/spinner.gif" id="spinner"/> |
| 49 | <ul class="nav pull-right"> |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 50 | <li id="login-topbar-item"><a href="login.html">Login</a></li> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 51 | </ul> |
| 52 | </div> |
| 53 | </div> |
Rushabh Mehta | a9302b0 | 2012-09-05 12:32:19 +0530 | [diff] [blame] | 54 | </div> |
| 55 | <script>$('.dropdown-toggle').dropdown()</script> |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 56 | </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 Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 70 | {% if copyright %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 71 | <div class="web-footer-copyright">© {{ copyright }} |
Anand Doshi | 51146c0 | 2012-07-12 18:41:12 +0530 | [diff] [blame] | 72 | {% endif %} |
Rushabh Mehta | bd7f723 | 2012-06-15 14:00:06 +0530 | [diff] [blame] | 73 | </div> |
| 74 | </footer> |
| 75 | |
| 76 | {% endblock %} |