blob: ab6a69eb2345154fef0e90f4dec4360a4661e96e [file] [log] [blame]
Rushabh Mehtaf2b17d92013-02-21 10:49:37 +05301{#
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 Mehta78db3ec2013-02-21 14:25:30 +053010 <div class="container">
11 <div class="outer">
12 <div class="navbar{% if top_bar_background=="Black" %} navbar-inverse{% endif %}"
Rushabh Mehta676a5682013-03-07 18:51:10 +053013 style="">
Rushabh Mehta78db3ec2013-02-21 14:25:30 +053014 <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 Mehtaf2b17d92013-02-21 10:49:37 +053040 </a>
Rushabh Mehta78db3ec2013-02-21 14:25:30 +053041 <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 Mehtaf2b17d92013-02-21 10:49:37 +053059 {% endfor %}
Rushabh Mehta78db3ec2013-02-21 14:25:30 +053060 </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 Mehtaf2b17d92013-02-21 10:49:37 +053067 </div>
Rushabh Mehta78db3ec2013-02-21 14:25:30 +053068 <script>$('.dropdown-toggle').dropdown()</script>
69 <div class="content row" id="page-{{ name }}" style="display: block;">
70 {% block content %}
71 {% endblock %}
Rushabh Mehtaf2b17d92013-02-21 10:49:37 +053072 </div>
73 </div>
Rushabh Mehtaf2b17d92013-02-21 10:49:37 +053074 </div>
Rushabh Mehta78db3ec2013-02-21 14:25:30 +053075 <footer class="container"><div class="web-footer">
Rushabh Mehtaf2b17d92013-02-21 10:49:37 +053076 {% 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 Mehta1c366972013-02-21 10:54:04 +053097 <p style="float: right; clear: right;">
98 <a style="font-size: 90%; color: #888;" href="attributions">ERPNext Powered</a></p>
Rushabh Mehtaf2b17d92013-02-21 10:49:37 +053099 <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">&copy; {{ copyright }}</div>
107 {% endif %}
108 {% if address %}
109 {{ address }}
110 {% endif %}
111 </div>
112 </footer>
113
114{% endblock %}