37ddf188d5049c524709965e87e9c38acfbed482
[xnet] / xnet / site / templates / base.html
1 {% load i18n staticfiles %}
2 {% load url from future %}
3 <!DOCTYPE html>
4 <html>
5 <head>
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">
14 {% block css %}{% endblock %}
15 </head>
16 <body>
17 {% block body %}
18 <div class="navbar">
19 <div class="navbar-inner navbar-fixed-top">
20 <div class="container">
21 <a class="logo-nav pull-left" href="{% url 'home' %}"><img src="" alt="Logo"></a>
22 {% if user.is_authenticated %}
23 <p class="navbar-text pull-right">
24 <a href="#">{{ user.get_full_name }}</a>
25 &nbsp;|&nbsp;
26 <a href="#"><span class="picto picto-logout"></span>{% trans "Log Out" %}</a>
27
28 </p>
29 <div class="nav-collapse collapse">
30 <ul class="nav">
31 <li{% if top == 'groups' %} class="active"{% endif %}>
32 <a href="{% url 'groups:group-list' %}">
33 {% trans "Groupes" %}
34 </a>
35 </li>
36 <li{% if top == 'events' %} class="active"{% endif %}>
37 <a href="{% url 'events:event-list' %}">
38 {% trans "Événements" %}
39 </a>
40 </li>
41 <li{% if top == 'blih' %} class="active"{% endif %}>
42 <a href="#">{% trans "Blih" %}</a>
43 </li>
44 <li{% if top == 'bloh' %} class="active"{% endif %}>
45 <a href="#">
46 {% trans "Bloh" %}
47 </a>
48 </li>
49 </ul>
50 </div><!--/.nav-collapse -->
51 {% endif %}
52 </div>
53 </div>
54 </div>
55
56 <div class="container wrapper">
57 {% if messages %}
58 {% for message in messages %}
59 <div class="alert {% if message.tags %}alert-{{ message.tags }}"{% endif %}>{{ message }}</div>
60 {% endfor %}
61 {% endif %}
62 <div class="row-fluid">
63 {% block full-content %} {# To use when the sidebar is not needed #}
64 <div class="span2 sidebar">
65 {% block sidebar %}
66 {% endblock %}
67 </div>
68 <div class="span10">
69 {% block content %}
70 {% endblock %}
71 </div>
72 {% endblock %}
73 </div>
74 <div class="push"></div>
75 </div><!--/.container-->
76 <footer>
77 <p>
78 &copy; Polytechnique.org 2013
79 </p>
80 </footer>
81 {% endblock body %}
82 <script src="{% static 'js/lib/jquery-1.9.0.min.js' %}"></script>
83 <script src="{% static 'js/lib/bootstrap.min.js' %}"></script>
84 {% block js %}
85 {% endblock %}
86 </body>
87 </html>