4
4
{% block extra_css %}
5
5
{{ block.super }}
6
6
< link rel ="stylesheet " href ="{% static 'dsgvo_video_embed.css' %} " />
7
- {% endblock %}
7
+ {% endblock extra_css %}
8
8
9
9
{% block extra_js %}
10
10
{{ block.super }}
11
11
< script type ="text/javascript " src ="{% static 'dsgvo_video_embed.js' %} "> </ script >
12
- {% endblock %}
12
+ {% endblock extra_js %}
13
13
14
- {% block title %}{{project.name}} — {{ block.super }}{% endblock %}
14
+ {% block title %}{{ project.name }} — {{ block.super }}{% endblock title %}
15
15
16
16
{% block extra_messages %}
17
17
{{ block.super }}
20
20
< ul class ="messages ">
21
21
< li class ="alert alert--warning " role ="alert ">
22
22
< div class ="container ">
23
- {% translate ' This project is not published yet.' %}
23
+ {% translate " This project is not published yet." %}
24
24
</ div >
25
25
</ li >
26
26
</ ul >
27
27
{% endif %}
28
- {% endblock %}
28
+ {% endblock extra_messages %}
29
29
30
30
{% block breadcrumbs %}
31
31
< div id ="content-header ">
32
- < nav class ="breadcrumb " aria-label =" {% translate ' You are here:' %} " >
32
+ < nav class ="breadcrumb " aria-label =' {% translate " You are here:" %} ' >
33
33
< ol >
34
34
< li > < a href ="/ "> meinBerlin</ a > </ li >
35
- < li > < a href ="{% url 'meinberlin_plans:plan-list' %} "> {% translate ' Project Overview' %}</ a > </ li >
35
+ < li > < a href ="{% url 'meinberlin_plans:plan-list' %} "> {% translate " Project Overview" %}</ a > </ li >
36
36
< li class ="active " aria-current ="page "> {{ project.name|truncatechars:50 }}</ li >
37
37
</ ol >
38
38
</ nav >
39
39
</ div >
40
- {% endblock %}
40
+ {% endblock breadcrumbs %}
41
41
42
42
{% block content %}
43
43
<!-- FIXME according to the marketing verticle the herounit should be before the maincontent however the styling for this here is nested within maincontent
48
48
< div class ="mainbar__left ">
49
49
< div class ="image ">
50
50
< div class ="image__image ">
51
- < img src ="{{ project.image |thumbnail_url:' heroimage' }} " alt =" {% if project.image_alt_text %}{{ project.image_alt_text }}{% else %}{% translate ' Here you can find a decorative picture.' %}{% endif %} " />
51
+ < img src ="{{ project.image | thumbnail_url: " heroimage " }}" alt=' {% if project.image_alt_text %}{{ project.image_alt_text }}{% else %}{% translate " Here you can find a decorative picture." %}{% endif %} ' width =" 100% " height =" auto " loading =" lazy " />
52
52
</ div >
53
53
</ div >
54
54
</ div >
@@ -61,7 +61,7 @@ <h1 class="title">{{ project.name }}</h1>
61
61
{% if project.image_copyright %}
62
62
{{ project.image_copyright }}
63
63
{% else %}
64
- {% translate ' copyright missing' %}
64
+ {% translate " copyright missing" %}
65
65
{% endif %}
66
66
</ p >
67
67
</ div >
@@ -73,50 +73,60 @@ <h1 class="title">{{ project.name }}</h1>
73
73
</ div >
74
74
</ div >
75
75
</ section >
76
- < div class ="js-tabs ">
76
+ < div class ="tabnavigation js-tabs ">
77
77
< div class ="row row--reverse-palm ">
78
78
{% has_perm 'a4projects.change_project' request.user view.project as user_may_change %}
79
- {% if user_may_change %}
80
- < div class ="span4 align--right ">
81
- < a class ="link--edit " href ="{% url 'a4dashboard:project-edit' project_slug=project.slug %} ">
82
- {% translate 'Edit' %}
83
- </ a >
84
- </ div >
85
- {% endif %}
86
- < div class ="span8 ">
87
- < div role ="tablist "
88
- aria-label ="{% translate 'Project Details Navigation' %} ">
89
- < button id ="tab-project-{{ project.pk }}-information "
90
- class ="tab__button "
91
- type ="button "
92
- role ="tab "
93
- aria-selected ="false "
94
- aria-controls ="tabpanel-project-{{ project.pk }}-information "
95
- tabindex ="-1 ">
96
- {% translate 'Information' %}
97
- </ button >
98
- < button
99
- id ="tab-project-{{ project.pk }}-participation "
100
- class ="tab__button "
101
- type ="button "
102
- role ="tab "
103
- aria-selected ="true "
104
- aria-controls ="tabpanel-project-{{ project.pk }}-participation ">
105
- {% translate 'Participation' %}
106
- </ button >
107
- < button
108
- id ="tab-project-{{ project.pk }}-result "
109
- class ="tab__button "
110
- type ="button "
111
- role ="tab "
112
- aria-selected ="false "
113
- aria-controls ="tabpanel-project-{{ project.pk }}-result "
114
- tabindex ="-1 ">
115
- {% translate 'Results' %}
116
- </ button >
79
+ < div >
80
+ {% if user_may_change %}
81
+ < div class ="tabnavigation--right ">
82
+ < a class ="tabnavigation__link " href ="{% url 'a4dashboard:project-edit' project_slug=project.slug %} ">
83
+ {% translate "Edit" %}
84
+ </ a >
117
85
</ div >
86
+ {% endif %}
87
+ < ul
88
+ class ="tabnavigation--left "
89
+ role ="tablist "
90
+ aria-label ='{% translate "Project Details Navigation" %} '
91
+ >
92
+ < li >
93
+ < button
94
+ id ="tab-project-{{ project.pk }}-information "
95
+ class ="tabnavigation__button "
96
+ type ="button "
97
+ role ="tab "
98
+ aria-selected ="false "
99
+ aria-controls ="tabpanel-project-{{ project.pk }}-information "
100
+ tabindex ="-1 ">
101
+ {% translate "Information" %}
102
+ </ button >
103
+ </ li >
104
+
105
+ < li >
106
+ < button
107
+ id ="tab-project-{{ project.pk }}-participation "
108
+ class ="tabnavigation__button "
109
+ type ="button "
110
+ role ="tab "
111
+ aria-selected ="true "
112
+ aria-controls ="tabpanel-project-{{ project.pk }}-participation ">
113
+ {% translate "Participation" %}
114
+ </ button >
115
+ </ li >
116
+ < li >
117
+ < button
118
+ id ="tab-project-{{ project.pk }}-result "
119
+ class ="tabnavigation__button "
120
+ type ="button "
121
+ role ="tab "
122
+ aria-selected ="false "
123
+ aria-controls ="tabpanel-project-{{ project.pk }}-result "
124
+ tabindex ="-1 ">
125
+ {% translate "Results" %}
126
+ </ button >
127
+ </ li >
128
+ </ ul >
118
129
</ div >
119
- < hr class ="no-space "/>
120
130
</ div >
121
131
< section
122
132
id ="tabpanel-project-{{ project.pk }}-information "
@@ -125,14 +135,14 @@ <h1 class="title">{{ project.name }}</h1>
125
135
aria-expanded ="false "
126
136
aria-hidden ="true "
127
137
aria-labelledby ="tab-project-{{ project.pk }}-information ">
128
- < h2 > {% translate ' Information' %}</ h2 >
138
+ < h2 class =" mt-0 " > {% translate " Information" %}</ h2 >
129
139
< div class ="ck-content ">
130
140
{{ project.information | transform_collapsibles | disable_iframes | richtext }}
131
141
</ div >
132
142
{% if project.contact_name or project.contact_address_text or project.contact_email or project.contact_phone or project.contact_url or project.organisation.address or project.organisation.url %}
133
143
{% if project.contact_name or project.contact_address_text or project.contact_email or project.contact_phone or project.contact_url %}
134
144
< div >
135
- < h3 > {% translate ' Contact for questions' %}</ h3 >
145
+ < h3 > {% translate " Contact for questions" %}</ h3 >
136
146
< address >
137
147
{% if project.contact_name %}
138
148
< p > {{ project.contact_name }}</ p >
@@ -141,16 +151,16 @@ <h3>{% translate 'Contact for questions' %}</h3>
141
151
< p > {{ project.contact_address_text|linebreaks }}</ p >
142
152
{% endif %}
143
153
{% if project.contact_phone %}
144
- < p > < strong > {% translate ' Telephone' %}: </ strong > {{ project.contact_phone }}</ p >
154
+ < p > < strong > {% translate " Telephone" %}: </ strong > {{ project.contact_phone }}</ p >
145
155
{% endif %}
146
156
{% if project.contact_email %}
147
157
< a class ="btn btn--secondary " href ="mailto:{{ project.contact_email }} ">
148
- {% translate ' Email' %}
158
+ {% translate " Email" %}
149
159
</ a >
150
160
{% endif %}
151
161
{% if project.contact_url %}
152
162
< a class ="btn btn--secondary " target ="_blank " href ="{{ project.contact_url }} ">
153
- {% translate ' Website' %}
163
+ {% translate " Website" %}
154
164
</ a >
155
165
{% endif %}
156
166
</ address >
@@ -159,15 +169,15 @@ <h3>{% translate 'Contact for questions' %}</h3>
159
169
160
170
{% if project.organisation.address or project.organisation.url %}
161
171
< div >
162
- < h3 > {% translate ' Responsible body' %}</ h3 >
172
+ < h3 > {% translate " Responsible body" %}</ h3 >
163
173
< address >
164
174
{% if project.organisation.address %}
165
175
< p > {{ project.organisation.name }}</ p >
166
176
< p > {{ project.organisation.address|linebreaks }}</ p >
167
177
{% endif %}
168
178
{% if project.organisation.url %}
169
179
< a class ="btn btn--secondary " target ="_blank " href ="{{ project.organisation.url }} ">
170
- {% translate ' Website' %}
180
+ {% translate " Website" %}
171
181
</ a >
172
182
{% endif %}
173
183
</ address >
@@ -182,7 +192,7 @@ <h3>{% translate 'Responsible body' %}</h3>
182
192
aria-expanded ="true "
183
193
aria-hidden ="false "
184
194
aria-labelledby ="tab-project-{{ project.pk }}-participation ">
185
- < h2 > {% translate ' Participate' %}</ h2 >
195
+ < h2 class =" mt-0 " > {% translate " Participate" %}</ h2 >
186
196
{% if event %}
187
197
< article >
188
198
< h2 > {{ event.name }}</ h2 >
@@ -201,22 +211,21 @@ <h2>{{ event.name }}</h2>
201
211
</ ul >
202
212
</ div >
203
213
</ div >
204
- {% else %}
214
+ {% else %}
205
215
<!-- if just one module and no phase view to dispatch to -->
206
216
< div class ="modul-servicepanel fullwidth panel--heavy phase-info ">
207
217
< div class ="servicepanel__main ">
208
218
{% include "a4modules/includes/module_detail_phase.html" %}
209
219
</ div >
210
220
<!-- these blocks are only filled when in phase view -->
211
221
< div class ="servicepanel__right phase-info__cta ">
212
- {% block project_action %}{% endblock %}
222
+ {% block project_action %}{% endblock project_action %}
213
223
</ div >
214
224
</ div >
215
225
{% endif %}
216
226
217
-
218
- {% block voting_token_field %}{% endblock %}
219
- {% block phase_content %}{% endblock %}
227
+ {% block voting_token_field %}{% endblock voting_token_field %}
228
+ {% block phase_content %}{% endblock phase_content %}
220
229
</ section >
221
230
< section
222
231
id ="tabpanel-project-{{ project.pk }}-result "
@@ -225,15 +234,15 @@ <h2>{{ event.name }}</h2>
225
234
aria-expanded ="false "
226
235
aria-hidden ="true "
227
236
aria-labelledby ="tab-project-{{ project.pk }}-result ">
228
- < h2 > {% translate ' Result' %}</ h2 >
237
+ < h2 class =" mt-0 " > {% translate " Result" %}</ h2 >
229
238
{% if project.result %}
230
239
< div class ="ck-content ">
231
240
{{ project.result | transform_collapsibles | richtext }}
232
241
</ div >
233
242
{% else %}
234
- {% translate ' No results yet.' %}
243
+ < p > {% translate " No results yet." %}</ p >
235
244
{% endif %}
236
245
</ section >
237
246
</ div >
238
247
</ div >
239
- {% endblock %}
248
+ {% endblock content %}
0 commit comments