add base template
[xnet] / xnet / templates / base.html
CommitLineData
66ae88f4
BG
1{% load i18n staticfiles %}
2{% load url from future %}
3<!DOCTYPE html>
33234b2f 4<html>
7a1f5d5b 5 <head>
66ae88f4
BG
6 <title>Polytechnique.net - {% block title %}{% trans "Groups" %}{% endblock %}</title>
7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8 <link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet">
9 <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
10 <!--[if lt IE 9]>
11 <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
12 <![endif]-->
13 <link href="{% static 'css/common.css' %}" rel="stylesheet">
7a1f5d5b 14 </head>
7a1f5d5b 15 <body>
66ae88f4
BG
16 {% block body %}
17 <div class="navbar">
18 <div class="navbar-inner navbar-fixed-top">
19 <div class="container">
20 <a class="logo-nav pull-left" href="{% url 'home' %}"><img src="" alt="Logo"></a>
21 {% if user.is_authenticated %}
22 <p class="navbar-text pull-right">
23 <a href="#">{{ user.get_full_name }}</a>
24 &nbsp;|&nbsp;
25 <a href="#"><span class="picto picto-logout"></span>{% trans "Log Out" %}</a>
26
27 </p>
28 <div class="nav-collapse collapse">
29 <ul class="nav">
30 <li{% if top == 'blah' %} class="active"{% endif %}>
31 <a href="#">
32 {% trans "blah" %}
33 </a>
34 </li>
35 <li{% if top == 'blih' %} class="active"{% endif %}>
36 <a href="#">{% trans "Blih" %}</a>
37 </li>
38 <li{% if top == 'bloh' %} class="active"{% endif %}>
39 <a href="#">
40 {% trans "Bloh" %}
41 </a>
42 </li>
43 </ul>
44 </div><!--/.nav-collapse -->
45 {% endif %}
7a1f5d5b 46 </div>
66ae88f4
BG
47 </div>
48 </div>
33234b2f 49
66ae88f4
BG
50 <div class="container wrapper">
51 {% if messages %}
52 {% for message in messages %}
53 <div class="alert {% if message.tags %}alert-{{ message.tags }}"{% endif %}>{{ message }}</div>
54 {% endfor %}
55 {% endif %}
56 <div class="row-fluid">
57 {% block full-content %} {# To use when the sidebar is not needed #}
58 <div class="span2 sidebar">
59 {% block sidebar %}
60 {% endblock %}
61 </div>
62 <div class="span10">
63 {% block content %}
64 {% endblock %}
65 </div>
66 {% endblock %}
67 </div>
68 <div class="push"></div>
69 </div><!--/.container-->
70 <footer>
71 <p>
72 &copy; Polytechnique.org 2013
73 </p>
74 </footer>
75 {% endblock body %}
76 <script src="{% static 'js/lib/jquery-1.9.0.min.js' %}"></script>
77 <script src="{% static 'js/lib/bootstrap.min.js' %}"></script>
78 {% block js %}
79 {% endblock %}
7a1f5d5b 80 </body>
33234b2f 81</html>