Mercurial > sat_legacy_website
annotate templates/sat_website/base.html @ 23:2fdbf8ebb72b
upgrade to Django 1.7.3
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 17 Jan 2015 21:36:25 +0100 |
parents | 9bab976241dc |
children | 930e73ea9e8e |
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 %} |
0 | 23 |
24 <!DOCTYPE html> | |
25 <html lang="en"> | |
26 <meta charset="utf-8"> | |
27 <head> | |
28 <link rel="stylesheet" href="{% static "css/bootstrap.css" %}"> | |
29 <link rel="stylesheet" href="{% static "css/bootstrap-responsive.css" %}"> | |
30 <link rel="stylesheet" href="{% static "css/sat_website.css" %}"> | |
31 <link rel="icon" type="image/png" href="{% static "images/sat_logo_32.png" %}"> | |
2
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
32 <title>{% block title %}{% trans "Salut à Toi: the multi-frontends, multi-purposes communication tool" %}{% endblock %}</title> |
0 | 33 </head> |
34 <body> | |
35 <div class="navbar navbar-fixed-top"> | |
36 <div class="navbar-inner"> | |
37 <div class="container"> | |
38 <ul class="nav"> | |
39 <img id="sat_logo" src="{% static "images/sat_logo_32.png" %}"></li> | |
40 <a class="brand" href="overview.html">Salut à Toi</a> | |
41 {#<li><a href="#">Overview</a></li>#} | |
42 {% for cat_url,cat_name in categories.items %} | |
43 <li><a href="{{ cat_url }}.html">{{ cat_name }}</a></li> | |
44 {% endfor %} | |
1
a49aa1b823f6
added SàT archive download link (detect the last version)
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
45 </ul> |
13 | 46 <ul class="nav pull-right"> |
22
9bab976241dc
add the forgotten image for the presentation video #7 + modify the link to the demo website to use HTTPS
souliane <souliane@mailoo.org>
parents:
13
diff
changeset
|
47 <li><a href="https://www.libervia.org"><strong>{% trans "Try online demo" %}</strong></a> </li> |
13 | 48 {% 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
|
49 <li><a href="{{ latest_dl_path }}"><strong>{% trans "Download SàT" %} {{ latest_version }}</strong></a> </li> |
13 | 50 {% endif %} |
51 </ul> | |
0 | 52 </div> |
53 </div> | |
54 </div> | |
55 {% block content %}{% endblock %} | |
2
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
56 <div class="container"> |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
57 <div class="row" id="language"> |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
58 |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
59 <form class="well form-inline" action="/i18n/setlang/" method="post"> |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
60 {% csrf_token %} |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
61 <input name="next" type="hidden" value="{{ redirect_to }}" /> |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
62 <select name="language"> |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
63 {% get_language_info_list for available_languages as languages %} |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
64 {% for language in languages %} |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
65 <option value="{{ language.code }}">{{ language.name_local }} ({{ language.code }})</option> |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
66 {% endfor %} |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
67 </select> |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
68 <input type="submit" value="{% trans "Change language" %}" /> |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
69 </form> |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
70 </div> |
0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
Goffi <goffi@goffi.org>
parents:
1
diff
changeset
|
71 </div> |
0 | 72 </body> |
73 </html> |