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