annotate templates/sat_website/base.html @ 27:eda4deefecd1

reorganisation of the menu using submenus
author souliane <souliane@mailoo.org>
date Wed, 21 Jan 2015 20:07:20 +0100
parents 3df49721008c
children 30a1edf90fae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% comment %}
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
2 SàT website: Salut à Toi's presentation website
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
3 Copyright (C) 2012 Jérôme Poisson (goffi@goffi.org)
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
4
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
5 This file is part of SàT website.
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
6
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
7 SàT website is free software: you can redistribute it and/or modify
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
8 it under the terms of the GNU Affero General Public License as published by
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
9 the Free Software Foundation, either version 3 of the License, or
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
10 (at your option) any later version.
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
11
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
12 Foobar is distributed in the hope that it will be useful,
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
15 GNU Affero General Public License for more details.
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
16
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
17 You should have received a copy of the GNU Affero General Public License
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
18 along with Foobar. If not, see <http://www.gnu.org/licenses/>.
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
19 {% endcomment %}
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
20
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
21 {% load staticfiles %}
2
0df46e87537d i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents: 1
diff changeset
22 {% load i18n %}
25
930e73ea9e8e select the current language in the languages selection list
souliane <souliane@mailoo.org>
parents: 22
diff changeset
23 {% get_current_language as LANGUAGE_CODE %}
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
24
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
25 <!DOCTYPE html>
25
930e73ea9e8e select the current language in the languages selection list
souliane <souliane@mailoo.org>
parents: 22
diff changeset
26 <html lang="{{ LANGUAGE_CODE }}">
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
27 <head>
26
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
28 <meta charset="utf-8">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
29 <meta http-equiv="X-UA-Compatible" content="IE=edge">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
30 <meta name="viewport" content="width=device-width, initial-scale=1">
27
eda4deefecd1 reorganisation of the menu using submenus
souliane <souliane@mailoo.org>
parents: 26
diff changeset
31 <link rel="stylesheet" href="{% static "bootstrap/css/bootstrap.min.css" %}">
26
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
32 <link rel="stylesheet" href="{% static "css/sat_website.css" %}">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
33 <link rel="icon" type="image/png" href="{% static "images/sat_logo_32.png" %}">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
34 <title>{% block title %}{% trans "Salut à Toi: the multi-frontends, multi-purposes communication tool" %}{% endblock %}</title>
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
35 </head>
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
36 <body>
26
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
37 <nav class="navbar navbar-inverse navbar-fixed-top">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
38 <div class="container">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
39 <div class="navbar-header" id="navbar-header">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
40 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
41 <span class="sr-only">Toggle navigation</span>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
42 <span class="icon-bar"></span>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
43 <span class="icon-bar"></span>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
44 <span class="icon-bar"></span>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
45 </button>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
46 <img id="sat_logo" src="{% static "images/sat_logo_32.png" %}">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
47 <a class="navbar-brand" href="overview.html">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
48 Salut à Toi
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
49 </a>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
50 </div>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
51 <div id="navbar" class="collapse navbar-collapse">
27
eda4deefecd1 reorganisation of the menu using submenus
souliane <souliane@mailoo.org>
parents: 26
diff changeset
52 {% include "sat_website/menu.html" with style="nav navbar-nav" categories=categories %}
eda4deefecd1 reorganisation of the menu using submenus
souliane <souliane@mailoo.org>
parents: 26
diff changeset
53 {% include "sat_website/menu.html" with style="nav navbar-nav pull-right" categories=categories_right %}
26
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
54 </div>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
55 </div>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
56 </nav>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
57
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
58 {% block content %}{% endblock %}
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
59
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
60 <div class="container">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
61 <div class="row" id="language">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
62 <form class="well form-inline" action="{% url 'set_language' %}" method="post">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
63 {% csrf_token %}
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
64 <input name="next" type="hidden" value="{{ redirect_to }}" />
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
65 <select name="language">
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
66 {% get_language_info_list for available_languages as languages %}
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
67 {% for language in languages %}
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
68 <option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>{{ language.name_local }} ({{ language.code }})</option>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
69 {% endfor %}
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
70 </select>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
71 <input type="submit" value="{% trans "Change language" %}" />
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
72 </form>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
73 </div>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
74 </div>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
75 <script src="{% static "js/jquery.min.js" %}"></script>
3df49721008c upgrade to Bootstrap v3.3.1
souliane <souliane@mailoo.org>
parents: 25
diff changeset
76 <script src="{% static "bootstrap/js/bootstrap.min.js" %}"></script>
0
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
77 </body>
9305c6458e2f initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
78 </html>