Add links in page footer
[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 navbar-fixed-top">
19 <div class="navbar-inner">
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="{% url 'logout' %}">
27 <span class="picto picto-logout"></span>{% trans "Log Out" %}
28 </a>
29 </p>
30 <div class="nav-collapse collapse">
31 <ul class="nav">
32 <li{% if top == 'groups' %} class="active"{% endif %}>
33 <a href="{% url 'groups:group-list' %}">
34 {% trans "Groupes" %}
35 </a>
36 </li>
37 <li{% if top == 'events' %} class="active"{% endif %}>
38 <a href="{% url 'events:event-list' %}">
39 {% trans "Événements" %}
40 </a>
41 </li>
42 <li{% if top == 'blih' %} class="active"{% endif %}>
43 <a href="#">{% trans "Blih" %}</a>
44 </li>
45 <li{% if top == 'bloh' %} class="active"{% endif %}>
46 <a href="#">
47 {% trans "Bloh" %}
48 </a>
49 </li>
50 </ul>
51 </div><!--/.nav-collapse -->
52 {% endif %}
53 </div>
54 </div>
55 </div>
56
57 <div class="container wrapper">
58 {% if messages %}
59 {% for message in messages %}
60 <div class="alert {% if message.tags %}alert-{{ message.tags }}"{% endif %}>{{ message }}</div>
61 {% endfor %}
62 {% endif %}
63 <div class="row-fluid">
64 {% block full-content %} {# To use when the sidebar is not needed #}
65 <div class="span2 sidebar">
66 {% block sidebar %}
67 {% endblock %}
68 </div>
69 <div class="span10">
70 {% block content %}
71 {% endblock %}
72 </div>
73 {% endblock %}
74 </div>
75 <div class="push"></div>
76 </div><!--/.container-->
77 <footer>
78 <p>
79 &copy; Polytechnique.org 2013 -
80 <a href="http://xorg.polytechnique.org/">Association Polytechnique.org</a> -
81 <a href="{{ contact_email }}">nous contacter</a>
82 </p>
83 </footer>
84 {% endblock body %}
85 <script src="{% static 'js/lib/jquery-1.9.0.min.js' %}"></script>
86 <script src="{% static 'js/lib/bootstrap.min.js' %}"></script>
87 {% block js %}
88 {% endblock %}
89 </body>
90 </html>