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