blob: e582d0a9ce1575ba6b9f797907c5adde3c8142d1 [file] [log] [blame]
Rushabh Mehtaf2b17d92013-02-21 10:49:37 +05301{% extends "html/base.html" %}
2
3{% block body %}
4 <header>
5 </header>
Rushabh Mehta78db3ec2013-02-21 14:25:30 +05306 <div class="container">
7 <div class="outer">
8 <div class="navbar{% if top_bar_background=="Black" %} navbar-inverse{% endif %}"
Rushabh Mehta676a5682013-03-07 18:51:10 +05309 style="">
Rushabh Mehta78db3ec2013-02-21 14:25:30 +053010 <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 Mehtaf2b17d92013-02-21 10:49:37 +053036 </a>
Rushabh Mehta78db3ec2013-02-21 14:25:30 +053037 <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 Mehtaf2b17d92013-02-21 10:49:37 +053055 {% endfor %}
Rushabh Mehta78db3ec2013-02-21 14:25:30 +053056 </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 Mehtaf2b17d92013-02-21 10:49:37 +053063 </div>
Rushabh Mehta78db3ec2013-02-21 14:25:30 +053064 <script>$('.dropdown-toggle').dropdown()</script>
65 <div class="content row" id="page-{{ name }}" style="display: block;">
66 {% block content %}
67 {% endblock %}
Rushabh Mehtaf2b17d92013-02-21 10:49:37 +053068 </div>
69 </div>
Rushabh Mehtaf2b17d92013-02-21 10:49:37 +053070 </div>
Rushabh Mehta78db3ec2013-02-21 14:25:30 +053071 <footer class="container"><div class="web-footer">
Rushabh Mehtaf2b17d92013-02-21 10:49:37 +053072 {% 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 Mehta1c366972013-02-21 10:54:04 +053093 <p style="float: right; clear: right;">
94 <a style="font-size: 90%; color: #888;" href="attributions">ERPNext Powered</a></p>
Rushabh Mehtaf2b17d92013-02-21 10:49:37 +053095 <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">&copy; {{ copyright }}</div>
103 {% endif %}
104 {% if address %}
105 {{ address }}
106 {% endif %}
107 </div>
108 </footer>
109
110{% endblock %}