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