Mercurial > sat_legacy_website
annotate templates/sat_website/base.html @ 124:5aad1b36183f
fixes some spaces before question or exclamation marks
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 06 Nov 2015 10:15:33 +0100 |
parents | 80a0f195231a |
children | 699b9b130368 |
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 %} |
72
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
23 {% load utils %} |
25
930e73ea9e8e
select the current language in the languages selection list
souliane <souliane@mailoo.org>
parents:
22
diff
changeset
|
24 {% get_current_language as LANGUAGE_CODE %} |
0 | 25 |
26 <!DOCTYPE html> | |
25
930e73ea9e8e
select the current language in the languages selection list
souliane <souliane@mailoo.org>
parents:
22
diff
changeset
|
27 <html lang="{{ LANGUAGE_CODE }}"> |
0 | 28 <head> |
26 | 29 <meta charset="utf-8"> |
30 <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
31 <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
|
32 <link rel="stylesheet" href="{% static "bootstrap/css/bootstrap.min.css" %}"> |
33
73c6333fd124
change overview.html, move the previous content to principles.html
souliane <souliane@mailoo.org>
parents:
29
diff
changeset
|
33 <link rel="stylesheet" href="{% static "bootstrap/css/bootstrap-theme.min.css" %}"> |
26 | 34 <link rel="stylesheet" href="{% static "css/sat_website.css" %}"> |
35 <link rel="icon" type="image/png" href="{% static "images/sat_logo_32.png" %}"> | |
45
62c23067e86e
improve English texts following recommandations from Florian
souliane <souliane@mailoo.org>
parents:
33
diff
changeset
|
36 <title>{% block title %}{% trans "Salut à Toi: the multi frontend, multipurpose communication tool" %}{% endblock %}</title> |
0 | 37 </head> |
33
73c6333fd124
change overview.html, move the previous content to principles.html
souliane <souliane@mailoo.org>
parents:
29
diff
changeset
|
38 <body role="document"> |
120
80a0f195231a
show the campaign big banner on the "overview" page
souliane <souliane@mailoo.org>
parents:
116
diff
changeset
|
39 {% comment %}FIXME: remove "" and "overview" from the following test when the campaign is over{% endcomment %} |
80a0f195231a
show the campaign big banner on the "overview" page
souliane <souliane@mailoo.org>
parents:
116
diff
changeset
|
40 {% if category != "" and category != "overview" and category != "membership" and category != "membership_form" and category != "thank_you" %} |
71
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
41 <div class="alert alert-info banner"> |
116
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
42 <div class="container"> |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
43 |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
44 {% comment %} |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
45 <div class="row"> |
71
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
46 <div class="col-md-10"> |
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
47 {% trans "We need your support to continue and move forward! Take the time to read about what we do. If you like it, please join the association." %} |
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
48 {% include "sat_website/finance.html" %} |
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
49 </div> |
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
50 <div class="col-md-2"> |
77
13ebb548f234
use membership instead of adhesion in English (also rename the files)
souliane <souliane@mailoo.org>
parents:
72
diff
changeset
|
51 <a class="btn btn-default" href="membership.html" role="button">{% trans "Membership" %}</a> |
71
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
52 </div> |
116
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
53 </div> |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
54 |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
55 # FIXME: dirty implementation just for the duration of the campaign! |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
56 {% endcomment %} |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
57 <div class="text-center"> |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
58 {{ campaign_countdown }} |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
59 {% if campaign_countdown > 1 %}{% trans " days" %}{% else %}{% trans "day" %}{% endif %} |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
60 {% trans "left to support our" %} |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
61 <a class="btn btn-default" style="float:none" href="http://www.arizuka.com/{{LANGUAGE_CODE}}/projects/libervia/" target="#" role="button">{% trans "crowdfunding campaign" %}</a> |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
62 {% trans "for an Android interface!" %} |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
63 </div> |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
64 |
e138879873f1
changes to link the crowdfunding campaign (revert to be done manually after 45 days)
souliane <souliane@mailoo.org>
parents:
110
diff
changeset
|
65 </div> |
71
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
66 </div> |
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
67 {% else %} |
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
68 <div class="banner"></div> |
a14845624e01
display a banner on top of all pages (but adhesion, adhesion_form and thank_you) to encourage people joining the association
souliane <souliane@mailoo.org>
parents:
54
diff
changeset
|
69 {% endif %} |
26 | 70 <nav class="navbar navbar-inverse navbar-fixed-top"> |
71 <div class="container"> | |
72 <div class="navbar-header" id="navbar-header"> | |
73 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | |
74 <span class="sr-only">Toggle navigation</span> | |
75 <span class="icon-bar"></span> | |
76 <span class="icon-bar"></span> | |
77 <span class="icon-bar"></span> | |
78 </button> | |
81 | 79 <img id="sat_logo" src="{% static "images/sat_logo.svg" %}"> |
26 | 80 <a class="navbar-brand" href="overview.html"> |
81 Salut à Toi | |
82 </a> | |
83 </div> | |
84 <div id="navbar" class="collapse navbar-collapse"> | |
27
eda4deefecd1
reorganisation of the menu using submenus
souliane <souliane@mailoo.org>
parents:
26
diff
changeset
|
85 {% include "sat_website/menu.html" with style="nav navbar-nav" categories=categories %} |
28
30a1edf90fae
move the language selector to the main menu
souliane <souliane@mailoo.org>
parents:
27
diff
changeset
|
86 {% include "sat_website/menu.html" with style="nav navbar-nav pull-right" categories=categories_right language_select=True %} |
26 | 87 </div> |
72
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
88 <noscript> |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
89 {% for cat_url, item in categories.items %} |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
90 {% if item|is_tuple %} |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
91 {% for subcat_url, cat_name in item.1.items %} |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
92 <a class="btn btn-default" role="button" href="{{ subcat_url }}.html">{{ cat_name }}</a> |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
93 {% endfor %} |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
94 {% endif %} |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
95 {% endfor %} |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
96 <form id="language_form" class="form-inline" action="{% url 'set_language' %}" method="post"> |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
97 {% csrf_token %} |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
98 <input name="next" type="hidden" value="{{ redirect_to }}" /> |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
99 <select id="language_select" name="language"> |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
100 {% get_language_info_list for available_languages as languages %} |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
101 {% for language in languages %} |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
102 <option value="{{ language.code }}"{% if language.code == LANGUAGE_CODE %} selected="selected"{% endif %}>{{ language.name_local|title }}</option> |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
103 {% endfor %} |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
104 </select> |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
105 <input type="submit" value="{% trans "Set language" %}" /> |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
106 </form> |
ac83544a7645
display an ugly menu in <noscript> when JS is disabled
souliane <souliane@mailoo.org>
parents:
71
diff
changeset
|
107 </noscript> |
26 | 108 </div> |
109 </nav> | |
110 | |
54
d54f2f09a73a
fixes displaying two carousels on the same page
souliane <souliane@mailoo.org>
parents:
45
diff
changeset
|
111 <script src="{% static "js/jquery.min.js" %}"></script> |
26 | 112 {% block content %}{% endblock %} |
99
dd7a496bf762
add a general footer containing the email contact + add a section for this contact in the "community" section
souliane <souliane@mailoo.org>
parents:
81
diff
changeset
|
113 <footer class="text-center"> |
dd7a496bf762
add a general footer containing the email contact + add a section for this contact in the "community" section
souliane <souliane@mailoo.org>
parents:
81
diff
changeset
|
114 <address> |
dd7a496bf762
add a general footer containing the email contact + add a section for this contact in the "community" section
souliane <souliane@mailoo.org>
parents:
81
diff
changeset
|
115 {% trans '"Salut à Toi" association' %} - |
110
f3b907d0e5ab
changed anti-spam email by .invalid tld. TODO: should use a template instead
Goffi <goffi@goffi.org>
parents:
108
diff
changeset
|
116 <a href="mailto:contact@salut-a-toi.invalid">contact</a> {% trans "(replace invalid with org)" %} |
99
dd7a496bf762
add a general footer containing the email contact + add a section for this contact in the "community" section
souliane <souliane@mailoo.org>
parents:
81
diff
changeset
|
117 </address> |
dd7a496bf762
add a general footer containing the email contact + add a section for this contact in the "community" section
souliane <souliane@mailoo.org>
parents:
81
diff
changeset
|
118 </footer> |
26 | 119 <script src="{% static "bootstrap/js/bootstrap.min.js" %}"></script> |
29
b45621706d83
use Bootstrap carousels to display images and videos galeries:
souliane <souliane@mailoo.org>
parents:
28
diff
changeset
|
120 <script src="{% static "js/sat_website.js" %}"></script> |
0 | 121 </body> |
122 </html> |