Rushabh Mehta | f2b17d9 | 2013-02-21 10:49:37 +0530 | [diff] [blame] | 1 | {# |
| 2 | requires, brand_html, top_bar_items, footer_items, copyright, content, address |
| 3 | #} |
| 4 | |
| 5 | {% extends "html/base.html" %} |
| 6 | |
| 7 | {% block body %} |
| 8 | <header> |
| 9 | </header> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 10 | <div class="container"> |
| 11 | <div class="outer"> |
| 12 | <div class="navbar{% if top_bar_background=="Black" %} navbar-inverse{% endif %}" |
Rushabh Mehta | 676a568 | 2013-03-07 18:51:10 +0530 | [diff] [blame^] | 13 | style=""> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 14 | <div class="navbar-inner"> |
| 15 | <a class="brand" href="index">{{ brand_html }}</a> |
| 16 | <div class="container"> |
| 17 | <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> |
| 18 | <span class="icon-bar"></span> |
| 19 | <span class="icon-bar"></span> |
| 20 | <span class="icon-bar"></span> |
| 21 | </button> |
| 22 | <div class="nav-collapse collapse"> |
| 23 | <ul class="nav"> |
| 24 | {% for page in top_bar_items %} |
| 25 | {% if not page.parent_label %} |
| 26 | <li data-label="{{ page.label }}" |
| 27 | {% if page.child_items %} |
| 28 | class="dropdown" |
| 29 | {% endif %}> |
| 30 | <a href="{{ page.url or '#' }}" |
| 31 | {% if page.child_items %} |
| 32 | class="dropdown-toggle" |
| 33 | onclick="return false;" |
| 34 | data-toggle="dropdown" |
| 35 | {% endif %} |
| 36 | {{ page.target or ''}}> |
| 37 | {{ page.label }} |
| 38 | {% if page.child_items %} |
| 39 | <b class="caret"></b> |
Rushabh Mehta | f2b17d9 | 2013-02-21 10:49:37 +0530 | [diff] [blame] | 40 | </a> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 41 | <ul class="dropdown-menu"> |
| 42 | {% for child in page.child_items %} |
| 43 | <li data-label="{{ child.label }}"> |
| 44 | <a {% if child.indent %} |
| 45 | style="padding-left: |
| 46 | {{(int(child.indent)+1)*15 }}px" |
| 47 | {% endif %} |
| 48 | href="{{ child.url }}" {{ child.target or '' }}> |
| 49 | {{ child.label }} |
| 50 | </a> |
| 51 | </li> |
| 52 | {% endfor %} |
| 53 | </ul> |
| 54 | {% else %} |
| 55 | </a> |
| 56 | {% endif %} |
| 57 | </li> |
| 58 | {% endif %} |
Rushabh Mehta | f2b17d9 | 2013-02-21 10:49:37 +0530 | [diff] [blame] | 59 | {% endfor %} |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 60 | </ul> |
| 61 | <ul class="nav pull-right"> |
| 62 | <li id="login-topbar-item"><a href="login">Login</a></li> |
| 63 | </ul> |
| 64 | </div> |
| 65 | </div> |
| 66 | </div> |
Rushabh Mehta | f2b17d9 | 2013-02-21 10:49:37 +0530 | [diff] [blame] | 67 | </div> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 68 | <script>$('.dropdown-toggle').dropdown()</script> |
| 69 | <div class="content row" id="page-{{ name }}" style="display: block;"> |
| 70 | {% block content %} |
| 71 | {% endblock %} |
Rushabh Mehta | f2b17d9 | 2013-02-21 10:49:37 +0530 | [diff] [blame] | 72 | </div> |
| 73 | </div> |
Rushabh Mehta | f2b17d9 | 2013-02-21 10:49:37 +0530 | [diff] [blame] | 74 | </div> |
Rushabh Mehta | 78db3ec | 2013-02-21 14:25:30 +0530 | [diff] [blame] | 75 | <footer class="container"><div class="web-footer"> |
Rushabh Mehta | f2b17d9 | 2013-02-21 10:49:37 +0530 | [diff] [blame] | 76 | {% if facebook_share or google_plus_one or twitter_share or linked_in_share %} |
| 77 | <div class="social-icons" style=""> |
| 78 | <span style="font-size: 11px;">{{ share_text or "Share this page on: "}}</span> |
| 79 | {% if google_plus_one %} |
| 80 | <a href="https://plus.google.com/share?url={{ url }}" |
| 81 | target="_blank"><i class="icon-google-plus"></i></a> |
| 82 | {% endif %} |
| 83 | {% if twitter_share %} |
| 84 | <a href="https://twitter.com/intent/tweet?url={{ url }}&text={{ encoded_title }}" |
| 85 | target="_blank" ><i class="icon-twitter"></i></a> |
| 86 | {% endif %} |
| 87 | {% if facebook_share %} |
| 88 | <a href="https://www.facebook.com/sharer.php?u={{ url }}&t={{ encoded_title }}&via={{ twitter_share_via }}" |
| 89 | target="_blank"><i class="icon-facebook"></i></a> |
| 90 | {% endif %} |
| 91 | {% if linked_in_share %} |
| 92 | <a href="http://www.linkedin.com/shareArticle?mini=true&url={{ url }}&title={{ encoded_title }}" |
| 93 | target="_blank"><i class="icon-linkedin"></i></a> |
| 94 | {% endif %} |
| 95 | </div> |
| 96 | {% endif %} |
Rushabh Mehta | 1c36697 | 2013-02-21 10:54:04 +0530 | [diff] [blame] | 97 | <p style="float: right; clear: right;"> |
| 98 | <a style="font-size: 90%; color: #888;" href="attributions">ERPNext Powered</a></p> |
Rushabh Mehta | f2b17d9 | 2013-02-21 10:49:37 +0530 | [diff] [blame] | 99 | <div class="web-footer-menu"><ul> |
| 100 | {% for item in footer_items %} |
| 101 | <li><a href="{{ item.url }}" {{ item.target }} |
| 102 | data-label="{{ item.label }}">{{ item.label }}</a></li> |
| 103 | {% endfor %} |
| 104 | </ul></div> |
| 105 | {% if copyright %} |
| 106 | <div class="web-footer-copyright">© {{ copyright }}</div> |
| 107 | {% endif %} |
| 108 | {% if address %} |
| 109 | {{ address }} |
| 110 | {% endif %} |
| 111 | </div> |
| 112 | </footer> |
| 113 | |
| 114 | {% endblock %} |