Merge lp:~cjohnston/loco-team-portal/bugfix-lp-616544 into lp:loco-team-portal
- bugfix-lp-616544
- Merge into 0.2
Proposed by
Chris Johnston
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 231 | ||||
Proposed branch: | lp:~cjohnston/loco-team-portal/bugfix-lp-616544 | ||||
Merge into: | lp:loco-team-portal | ||||
Diff against target: |
628 lines (+216/-175) 6 files modified
loco_directory/locale/loco-directory.pot (+108/-86) loco_directory/templates/events/team_event_detail.html (+4/-11) loco_directory/templates/events/team_event_detail.inc.html (+20/-21) loco_directory/templates/events/team_event_detail_attendees.inc.html (+28/-10) loco_directory/templates/events/team_event_detail_basic.inc.html (+40/-38) loco_directory/templates/events/team_event_detail_comments.inc.html (+16/-9) |
||||
To merge this branch: | bzr merge lp:~cjohnston/loco-team-portal/bugfix-lp-616544 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hall (community) | Needs Fixing | ||
Review via email: mp+32792@code.launchpad.net |
Commit message
Description of the change
Redesigned UI for team events page
To post a comment you must log in.
- 230. By Chris Johnston
-
Fix for .pot
- 231. By Chris Johnston
-
Fixes conflict
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'loco_directory/locale/loco-directory.pot' |
2 | --- loco_directory/locale/loco-directory.pot 2010-08-14 20:22:37 +0000 |
3 | +++ loco_directory/locale/loco-directory.pot 2010-08-16 18:59:40 +0000 |
4 | @@ -8,7 +8,7 @@ |
5 | msgstr "" |
6 | "Project-Id-Version: PACKAGE VERSION\n" |
7 | "Report-Msgid-Bugs-To: \n" |
8 | -"POT-Creation-Date: 2010-08-14 20:22+0000\n" |
9 | +"POT-Creation-Date: 2010-08-16 18:57+0000\n" |
10 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
11 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
12 | "Language-Team: LANGUAGE <LL@li.org>\n" |
13 | @@ -132,7 +132,7 @@ |
14 | msgstr "" |
15 | |
16 | #: events/models.py:164 |
17 | -#: templates/events/team_event_detail_attendees.inc.html:13 |
18 | +#: templates/events/team_event_detail_attendees.inc.html:26 |
19 | msgid "Additional Guests" |
20 | msgstr "" |
21 | |
22 | @@ -437,7 +437,7 @@ |
23 | msgid "just ask!" |
24 | msgstr "" |
25 | |
26 | -#: templates/base.html:4 templates/index.html:8 |
27 | +#: templates/base.html:4 templates/index.html:13 |
28 | msgid "Ubuntu LoCo Team Directory" |
29 | msgstr "" |
30 | |
31 | @@ -445,28 +445,28 @@ |
32 | msgid "LoCo Team Directory" |
33 | msgstr "" |
34 | |
35 | -#: templates/base.html:13 templates/index.html:10 |
36 | +#: templates/base.html:13 templates/index.html:15 |
37 | msgid "Show all Teams" |
38 | msgstr "" |
39 | |
40 | -#: templates/base.html:13 templates/index.html:10 |
41 | +#: templates/base.html:13 templates/index.html:15 |
42 | #: templates/events/team_event_list.inc.html:8 |
43 | msgid "Teams" |
44 | msgstr "" |
45 | |
46 | -#: templates/base.html:14 templates/index.html:20 |
47 | +#: templates/base.html:14 templates/index.html:24 |
48 | msgid "Show all Events" |
49 | msgstr "" |
50 | |
51 | -#: templates/base.html:14 templates/index.html:20 |
52 | +#: templates/base.html:14 templates/index.html:24 |
53 | msgid "Events" |
54 | msgstr "" |
55 | |
56 | -#: templates/base.html:15 templates/index.html:27 |
57 | +#: templates/base.html:15 |
58 | msgid "Show all Venues" |
59 | msgstr "" |
60 | |
61 | -#: templates/base.html:15 templates/index.html:27 |
62 | +#: templates/base.html:15 |
63 | msgid "Venues" |
64 | msgstr "" |
65 | |
66 | @@ -498,33 +498,61 @@ |
67 | msgid "LoCo Directory" |
68 | msgstr "" |
69 | |
70 | -#: templates/index.html:12 |
71 | +#: templates/index.html:17 |
72 | msgid "" |
73 | "List of all Ubuntu LoCo Teams, with full information such as contact, web " |
74 | "pages, mailing list, and more." |
75 | msgstr "" |
76 | |
77 | -#: templates/index.html:13 |
78 | +#: templates/index.html:18 |
79 | msgid "" |
80 | "If there are no teams in your country/region/area, you will be able to add a " |
81 | "team in the near future." |
82 | msgstr "" |
83 | |
84 | -#: templates/index.html:21 |
85 | +#: templates/index.html:25 |
86 | msgid "" |
87 | "List of all Ubuntu LoCo Events, with full information such as location, " |
88 | "attendees, teams, and more." |
89 | msgstr "" |
90 | |
91 | -#: templates/index.html:28 |
92 | -msgid "List of all Ubuntu LoCo Venues." |
93 | -msgstr "" |
94 | - |
95 | -#: templates/index.html:32 |
96 | +#: templates/index.html:26 |
97 | +msgid "Upcoming Global Events" |
98 | +msgstr "" |
99 | + |
100 | +#: templates/index.html:29 templates/events/event_list.html:28 |
101 | +msgid "Global Events as ical" |
102 | +msgstr "" |
103 | + |
104 | +#: templates/index.html:31 templates/events/event_list.html:30 |
105 | +msgid "Select a global event below to see more information about it:" |
106 | +msgstr "" |
107 | + |
108 | +#: templates/index.html:36 |
109 | +msgid "There are currently no LoCo Global Events" |
110 | +msgstr "" |
111 | + |
112 | +#: templates/index.html:41 |
113 | +msgid "Upcoming Team Events" |
114 | +msgstr "" |
115 | + |
116 | +#: templates/index.html:43 templates/events/event_list.html:45 |
117 | +msgid "Team Events as ical" |
118 | +msgstr "" |
119 | + |
120 | +#: templates/index.html:45 |
121 | +msgid "There are currently no LoCo Team Events" |
122 | +msgstr "" |
123 | + |
124 | +#: templates/index.html:50 templates/events/global_event_detail.inc.html:11 |
125 | +msgid "Microblogging" |
126 | +msgstr "" |
127 | + |
128 | +#: templates/index.html:57 |
129 | msgid "Coming Soon!" |
130 | msgstr "" |
131 | |
132 | -#: templates/index.html:34 |
133 | +#: templates/index.html:59 |
134 | msgid "Future additions to this site will include:" |
135 | msgstr "" |
136 | |
137 | @@ -671,14 +699,6 @@ |
138 | msgid "Ubuntu LoCo Global Events" |
139 | msgstr "" |
140 | |
141 | -#: templates/events/event_list.html:28 |
142 | -msgid "Global Events as ical" |
143 | -msgstr "" |
144 | - |
145 | -#: templates/events/event_list.html:30 |
146 | -msgid "Select a global event below to see more information about it:" |
147 | -msgstr "" |
148 | - |
149 | #: templates/events/event_list.html:35 |
150 | msgid "There are currently no LoCo Global Events" |
151 | msgstr "" |
152 | @@ -687,10 +707,6 @@ |
153 | msgid "Ubuntu LoCo Team Events" |
154 | msgstr "" |
155 | |
156 | -#: templates/events/event_list.html:45 |
157 | -msgid "Team Events as ical" |
158 | -msgstr "" |
159 | - |
160 | #: templates/events/event_list.html:46 |
161 | #: templates/teams/team_event_history.html:18 |
162 | #: templates/teams/team_event_list.html:25 |
163 | @@ -702,7 +718,7 @@ |
164 | msgstr "" |
165 | |
166 | #: templates/events/global_event_delete_confirm.html:4 |
167 | -#: templates/events/global_event_detail.html:13 |
168 | +#: templates/events/global_event_detail.html:18 |
169 | msgid "Delete Global Event" |
170 | msgstr "" |
171 | |
172 | @@ -720,21 +736,19 @@ |
173 | msgid "Cancel" |
174 | msgstr "" |
175 | |
176 | -#: templates/events/global_event_detail.html:7 |
177 | -#: templates/events/team_event_detail.html:7 |
178 | +#: templates/events/global_event_detail.html:12 |
179 | msgid "Go back to Event list" |
180 | msgstr "" |
181 | |
182 | -#: templates/events/global_event_detail.html:9 |
183 | +#: templates/events/global_event_detail.html:14 |
184 | msgid "Add your Team's Event" |
185 | msgstr "" |
186 | |
187 | -#: templates/events/global_event_detail.html:12 |
188 | -#: templates/events/team_event_detail.html:18 |
189 | +#: templates/events/global_event_detail.html:17 |
190 | msgid "Edit details" |
191 | msgstr "" |
192 | |
193 | -#: templates/events/global_event_detail.inc.html:12 |
194 | +#: templates/events/global_event_detail.inc.html:20 |
195 | #, python-format |
196 | msgid "Attending Team Events (%(team_count)s)" |
197 | msgstr "" |
198 | @@ -744,22 +758,18 @@ |
199 | msgstr "" |
200 | |
201 | #: templates/events/global_event_detail_basic.inc.html:6 |
202 | -#: templates/events/team_event_detail_basic.inc.html:6 |
203 | msgid "Date begin:" |
204 | msgstr "" |
205 | |
206 | #: templates/events/global_event_detail_basic.inc.html:12 |
207 | -#: templates/events/team_event_detail_basic.inc.html:12 |
208 | msgid "Date end:" |
209 | msgstr "" |
210 | |
211 | #: templates/events/global_event_detail_basic.inc.html:18 |
212 | -#: templates/events/team_event_detail_basic.inc.html:25 |
213 | msgid "Description:" |
214 | msgstr "" |
215 | |
216 | #: templates/events/global_event_detail_basic.inc.html:24 |
217 | -#: templates/events/team_event_detail_basic.inc.html:31 |
218 | msgid "Announce:" |
219 | msgstr "" |
220 | |
221 | @@ -815,6 +825,7 @@ |
222 | |
223 | #: templates/events/team_event_delete_confirm.html:4 |
224 | #: templates/events/team_event_delete_confirm.html:15 |
225 | +#: templates/events/team_event_detail.html:12 |
226 | msgid "Delete Team Event" |
227 | msgstr "" |
228 | |
229 | @@ -823,36 +834,30 @@ |
230 | msgid "Do you really want to delete the Team Event: %(eventname)s?" |
231 | msgstr "" |
232 | |
233 | +#: templates/events/team_event_detail.html:7 |
234 | +msgid "Back to Events List" |
235 | +msgstr "" |
236 | + |
237 | #: templates/events/team_event_detail.html:9 |
238 | +#: templates/events/team_event_detail_comments.inc.html:7 |
239 | msgid "Add Comment" |
240 | msgstr "" |
241 | |
242 | -#: templates/events/team_event_detail.html:12 |
243 | -msgid "Change your Registration Status" |
244 | -msgstr "" |
245 | - |
246 | -#: templates/events/team_event_detail.html:14 |
247 | -msgid "Register for this Event" |
248 | -msgstr "" |
249 | - |
250 | -#: templates/events/team_event_detail.html:19 |
251 | -msgid "Delete team event" |
252 | -msgstr "" |
253 | - |
254 | -#: templates/events/team_event_detail.html:20 |
255 | -msgid "Copy event" |
256 | -msgstr "" |
257 | - |
258 | -#: templates/events/team_event_detail.inc.html:8 |
259 | -msgid "Location Information" |
260 | -msgstr "" |
261 | - |
262 | -#: templates/events/team_event_detail.inc.html:12 |
263 | -msgid "No Venue has been selected for this event." |
264 | +#: templates/events/team_event_detail.html:11 |
265 | +msgid "Edit Details" |
266 | +msgstr "" |
267 | + |
268 | +#: templates/events/team_event_detail.html:13 |
269 | +msgid "Copy Event" |
270 | +msgstr "" |
271 | + |
272 | +#: templates/events/team_event_detail.inc.html:14 |
273 | +msgid "Details" |
274 | msgstr "" |
275 | |
276 | #: templates/events/team_event_detail.inc.html:19 |
277 | -msgid "Registered Attendees" |
278 | +#: templates/events/team_event_detail_attendees.inc.html:24 |
279 | +msgid "Attendees" |
280 | msgstr "" |
281 | |
282 | #: templates/events/team_event_detail.inc.html:25 |
283 | @@ -860,32 +865,54 @@ |
284 | msgid "Event Comments (%(comment_count)s)" |
285 | msgstr "" |
286 | |
287 | -#: templates/events/team_event_detail_attendees.inc.html:5 |
288 | -msgid "Total confirmed attending:" |
289 | -msgstr "" |
290 | - |
291 | -#: templates/events/team_event_detail_attendees.inc.html:7 |
292 | -msgid "Total might be attending:" |
293 | -msgstr "" |
294 | - |
295 | -#: templates/events/team_event_detail_attendees.inc.html:13 |
296 | -msgid "Event Attendees" |
297 | -msgstr "" |
298 | - |
299 | -#: templates/events/team_event_detail_attendees.inc.html:13 |
300 | +#: templates/events/team_event_detail_attendees.inc.html:8 |
301 | +msgid "Change your Registration Status" |
302 | +msgstr "" |
303 | + |
304 | +#: templates/events/team_event_detail_attendees.inc.html:10 |
305 | +msgid "Register for this Event" |
306 | +msgstr "" |
307 | + |
308 | +#: templates/events/team_event_detail_attendees.inc.html:16 |
309 | +msgid "Confirmed attending:" |
310 | +msgstr "" |
311 | + |
312 | +#: templates/events/team_event_detail_attendees.inc.html:17 |
313 | +msgid "Maybe be attending:" |
314 | +msgstr "" |
315 | + |
316 | +#: templates/events/team_event_detail_attendees.inc.html:25 |
317 | msgid "Registration Status" |
318 | msgstr "" |
319 | |
320 | -#: templates/events/team_event_detail_basic.inc.html:18 |
321 | +#: templates/events/team_event_detail_basic.inc.html:6 |
322 | +msgid "When:" |
323 | +msgstr "" |
324 | + |
325 | +#: templates/events/team_event_detail_basic.inc.html:19 |
326 | +msgid "Where:" |
327 | +msgstr "" |
328 | + |
329 | +#: templates/events/team_event_detail_basic.inc.html:20 |
330 | +#: templates/venues/venue_list.html:36 templates/venues/venue_list.html:53 |
331 | +#: templates/venues/venue_list.html:66 |
332 | +msgid "show venue details" |
333 | +msgstr "" |
334 | + |
335 | +#: templates/events/team_event_detail_basic.inc.html:26 |
336 | msgid "Organizing Team(s):" |
337 | msgstr "" |
338 | |
339 | -#: templates/events/team_event_detail_basic.inc.html:19 |
340 | +#: templates/events/team_event_detail_basic.inc.html:27 |
341 | msgid "Get more information about this team" |
342 | msgstr "" |
343 | |
344 | -#: templates/events/team_event_detail_basic.inc.html:37 |
345 | -msgid "This event is part of:" |
346 | +#: templates/events/team_event_detail_basic.inc.html:33 |
347 | +msgid "Announcement:" |
348 | +msgstr "" |
349 | + |
350 | +#: templates/events/team_event_detail_basic.inc.html:40 |
351 | +msgid "Global Event:" |
352 | msgstr "" |
353 | |
354 | #: templates/events/team_event_detail_venue.inc.html:6 |
355 | @@ -1188,11 +1215,6 @@ |
356 | msgid "Select a Venue below to see more information about it:" |
357 | msgstr "" |
358 | |
359 | -#: templates/venues/venue_list.html:36 templates/venues/venue_list.html:53 |
360 | -#: templates/venues/venue_list.html:66 |
361 | -msgid "show venue details" |
362 | -msgstr "" |
363 | - |
364 | #: templates/venues/venue_list.html:46 |
365 | msgid "Countries without Continent" |
366 | msgstr "" |
367 | |
368 | === modified file 'loco_directory/templates/events/team_event_detail.html' |
369 | --- loco_directory/templates/events/team_event_detail.html 2010-07-29 01:01:25 +0000 |
370 | +++ loco_directory/templates/events/team_event_detail.html 2010-08-16 18:59:40 +0000 |
371 | @@ -4,20 +4,13 @@ |
372 | {% block title %}{% trans team_event_object.name %}{% endblock %} |
373 | |
374 | {% block sub_nav_links %} |
375 | -<a class="sub-nav-item" href="{% url event-list %}">{% trans "Go back to Event list" %}</a> |
376 | +<a class="sub-nav-item" href="{% url event-list %}">{% trans "Back to Events List" %}</a> |
377 | {% if user.is_authenticated %} |
378 | <a class="sub-nav-item" href="{% url team-event-comment-new team_event_object.id %}#comment">{% trans "Add Comment" %}</a> |
379 | - |
380 | -{% if user_is_attending %} |
381 | -<a class="sub-nav-item" href="{% url team-event-register team_event_object.id %}">{% trans 'Change your Registration Status' %}</a> |
382 | -{% else %} |
383 | -<a class="sub-nav-item" href="{% url team-event-register team_event_object.id %}">{% trans 'Register for this Event' %}</a> |
384 | -{% endif %} |
385 | - |
386 | {% if user_is_team_member %} |
387 | -<a class="sub-nav-item" href="{% url team-event-update team_event_object.id %}">{% trans "Edit details" %}</a> |
388 | -<a class="sub-nav-item" href="{% url team-event-delete team_event_object.id %}">{% trans "Delete team event" %}</a> |
389 | -<a class="sub-nav-item" href="{% url team-event-copy team_event_object.id %}">{% trans "Copy event" %}</a> |
390 | +<a class="sub-nav-item" href="{% url team-event-update team_event_object.id %}">{% trans "Edit Details" %}</a> |
391 | +<a class="sub-nav-item" href="{% url team-event-delete team_event_object.id %}">{% trans "Delete Team Event" %}</a> |
392 | +<a class="sub-nav-item" href="{% url team-event-copy team_event_object.id %}">{% trans "Copy Event" %}</a> |
393 | {% endif %} |
394 | |
395 | {% endif %} |
396 | |
397 | === modified file 'loco_directory/templates/events/team_event_detail.inc.html' |
398 | --- loco_directory/templates/events/team_event_detail.inc.html 2010-06-18 18:31:05 +0000 |
399 | +++ loco_directory/templates/events/team_event_detail.inc.html 2010-08-16 18:59:40 +0000 |
400 | @@ -1,29 +1,28 @@ |
401 | {% load i18n %} |
402 | -<article class="minor-content"> |
403 | +<article class="main-content"> |
404 | <h2>{{team_event_object.name}}</h2> |
405 | + {% if team_event_object.description %} |
406 | + <table id="team-event-basic"> |
407 | + <tr> |
408 | + <td class="form-item-value">{{ team_event_object.description|linebreaksbr }}</td> |
409 | + </tr> |
410 | + </table> |
411 | + {% endif %} |
412 | +</article> |
413 | + |
414 | +<article class="main-content"> |
415 | + <h3>{% trans "Details" %}</h3> |
416 | {% include "events/team_event_detail_basic.inc.html" %} |
417 | </article> |
418 | - |
419 | -<article class="minor-content alone"> |
420 | - <h2>{% trans "Location Information" %}</h2> |
421 | - {% if team_event_object.venue %} |
422 | - {% include "events/team_event_detail_venue.inc.html" %} |
423 | - {% else %} |
424 | - <p>{% trans "No Venue has been selected for this event." %}</p> |
425 | - {% endif %} |
426 | -</article> |
427 | - |
428 | -<hr class="divide" /> |
429 | - |
430 | -<article class="minor-content"> |
431 | - <h2>{% trans "Registered Attendees" %}</h2> |
432 | + |
433 | +<article class="main-content"> |
434 | + <h3>{% trans "Attendees" %}</h3> |
435 | {% include "events/team_event_detail_attendees.inc.html" %} |
436 | </article> |
437 | - |
438 | - {% if team_event_object.teameventcomment_set.all %} |
439 | -<article class="minor-content alone"> |
440 | - <h2>{% blocktrans with team_event_object.teameventcomment_set.all.count as comment_count %}Event Comments ({{ comment_count }}){% endblocktrans %}</h2> |
441 | + |
442 | +{% if team_event_object.teameventcomment_set.all %} |
443 | +<article class="main-content"> |
444 | + <h3>{% blocktrans with team_event_object.teameventcomment_set.all.count as comment_count %}Event Comments ({{ comment_count }}){% endblocktrans %}</h3> |
445 | {% include "events/team_event_detail_comments.inc.html" %} |
446 | </article> |
447 | - {% endif %} |
448 | - |
449 | +{% endif %} |
450 | |
451 | === modified file 'loco_directory/templates/events/team_event_detail_attendees.inc.html' |
452 | --- loco_directory/templates/events/team_event_detail_attendees.inc.html 2010-06-18 18:31:05 +0000 |
453 | +++ loco_directory/templates/events/team_event_detail_attendees.inc.html 2010-08-16 18:59:40 +0000 |
454 | @@ -1,19 +1,37 @@ |
455 | {% load i18n %} |
456 | + |
457 | <table id="team-event-totals" class="data_table"> |
458 | - |
459 | -<tr> |
460 | -<th class="form-item-label">{% trans 'Total confirmed attending:' %}</th><td class="form-item-value">{{ team_event_object.total_attending }}</td> |
461 | - |
462 | -<th class="form-item-label">{% trans 'Total might be attending:' %}</th><td class="form-item-value">{{ team_event_object.total_maybe_attending }}</td> |
463 | -</tr> |
464 | + <tr> |
465 | + <td colspan="2"> |
466 | + {% if user.is_authenticated %} |
467 | + {% if user_is_attending %} |
468 | + <a href="{% url team-event-register team_event_object.id %}">{% trans 'Change your Registration Status' %}</a> |
469 | + {% else %} |
470 | + <a href="{% url team-event-register team_event_object.id %}">{% trans 'Register for this Event' %}</a> |
471 | + {% endif %} |
472 | + {% endif %} |
473 | + </td> |
474 | + </tr> |
475 | + <tr> |
476 | + <th class="form-item-label">{% trans 'Confirmed attending:' %} {{ team_event_object.total_attending }}</th> |
477 | + <th class="form-item-label">{% trans 'Maybe be attending:' %} {{ team_event_object.total_maybe_attending }}</th> |
478 | + </tr> |
479 | </table> |
480 | |
481 | {% if team_event_object.attendee_set.all %} |
482 | <table id="team-event-attendees" class="data_table"> |
483 | -<tr><th>{% trans "Event Attendees" %}</th><th>{% trans "Registration Status" %}</th><th>{% trans "Additional Guests" %}</th></tr> |
484 | -{% for registration in team_event_object.attendee_set.all %} |
485 | -<tr><td align="center">{{registration.attendee.username}}</td><td align="center">{{registration.get_promise_display}}</td><td align="center">{{registration.guests}}</td></tr> |
486 | -{% endfor %} |
487 | + <tr> |
488 | + <th>{% trans "Attendees" %}</th> |
489 | + <th>{% trans "Registration Status" %}</th> |
490 | + <th>{% trans "Additional Guests" %}</th> |
491 | + </tr> |
492 | + {% for registration in team_event_object.attendee_set.all %} |
493 | + <tr class="team_event_list_row {% cycle "odd" "even" %}"> |
494 | + <td align="center">{{registration.attendee.username}}</td> |
495 | + <td align="center">{{registration.get_promise_display}}</td> |
496 | + <td align="center">{{registration.guests}}</td> |
497 | + </tr> |
498 | + {% endfor %} |
499 | </table> |
500 | {% endif %} |
501 | |
502 | |
503 | === modified file 'loco_directory/templates/events/team_event_detail_basic.inc.html' |
504 | --- loco_directory/templates/events/team_event_detail_basic.inc.html 2010-06-18 18:31:05 +0000 |
505 | +++ loco_directory/templates/events/team_event_detail_basic.inc.html 2010-08-16 18:59:40 +0000 |
506 | @@ -1,43 +1,45 @@ |
507 | {% load i18n %} |
508 | {% if team_event_object %} |
509 | <table id="team-event-basic"> |
510 | - {% if team_event_object.date_begin %} |
511 | - <tr> |
512 | - <th class="form-item-label" scope="row"><label>{% trans "Date begin:" %}</label></th> |
513 | - <td class="form-item-value">{{team_event_object.date_begin|date:"r" }}</td> |
514 | - </tr> |
515 | - {% endif %} |
516 | - {% if team_event_object.date_end %} |
517 | - <tr> |
518 | - <th class="form-item-label" scope="row"><label>{% trans "Date end:" %}</label></th> |
519 | - <td class="form-item-value">{{ team_event_object.date_end|date:"r" }}</td> |
520 | - </tr> |
521 | - {% endif %} |
522 | - {% if team_event_object.teams.all %} |
523 | - <tr> |
524 | - <th class="form-item-label" scope="row"><label>{% trans "Organizing Team(s):" %}</label></th> |
525 | - <td class="form-item-value">{% for team in team_event_object.teams.all %}<a title="{% trans "Get more information about this team" %}" href="{{ team.get_absolute_url }}">{{ team.name }}</a>{% if not forloop.last %},{% endif %}{% endfor %}</td> |
526 | - </tr> |
527 | - {% endif %} |
528 | - |
529 | - {% if team_event_object.description %} |
530 | - <tr> |
531 | - <th class="form-item-label" scope="row" valign="top"><label>{% trans "Description:" %}</label></th> |
532 | - <td class="form-item-value">{{ team_event_object.description|linebreaksbr }}</td> |
533 | - </tr> |
534 | - {% endif %} |
535 | - {% if team_event_object.announce %} |
536 | - <tr> |
537 | - <th class="form-item-label" scope="row"><label>{% trans "Announce:" %}</label></th> |
538 | - <td class="form-item-value"><a href="{{ team_event_object.announce }}">{{team_event_object.announce }}</a></td> |
539 | - </tr> |
540 | - {% endif %} |
541 | - {% if team_event_object.global_event %} |
542 | - <tr> |
543 | - <th class="form-item-label" scope="row"><label>{% trans "This event is part of:" %}</label></th> |
544 | - <td class="form-item-value"><a href="{{ team_event_object.global_event.get_absolute_url }}">{{team_event_object.global_event.name }}</a></td> |
545 | - </tr> |
546 | - {% endif %} |
547 | - |
548 | + {% if team_event_object.date_begin %} |
549 | + <tr> |
550 | + <th class="form-item-label" scope="row"><label>{% trans "When:" %}</label></th> |
551 | + <td class="form-item-value"> |
552 | + {% ifequal team_event_object.date_begin|date team_event_object.date_end|date %} |
553 | + {{ team_event_object.date_begin|date:"D, d N Y H:i" }} - {{ team_event_object.date_end|date:"H:i O" }} |
554 | + {% else %} |
555 | + {{ team_event_object.date_begin|date:"D, d N Y H:i" }} - {{ team_event_object.date_end|date:"D, d N Y H:i O" }} |
556 | + {% endifequal %} |
557 | + </td> |
558 | + </tr> |
559 | +{% endif %} |
560 | + |
561 | + {% if team_event_object.date_end %} |
562 | + <tr> |
563 | + <th class="form-item-label" scope="row"><label>{% trans "Where:" %}</label></th> |
564 | + <td class="form-item-value"><a title="{% trans "show venue details" %}" href="{{ team_event_object.venue.get_absolute_url }}">{{ team_event_object.venue.name }}{% if team_event_object.venue.city %} in {{ team_event_object.venue.city }}{% endif %}</a></td> |
565 | + </tr> |
566 | + {% endif %} |
567 | + |
568 | + {% if team_event_object.teams.all %} |
569 | + <tr> |
570 | + <th class="form-item-label" scope="row"><label>{% trans "Organizing Team(s):" %}</label></th> |
571 | + <td class="form-item-value">{% for team in team_event_object.teams.all %}<a title="{% trans "Get more information about this team" %}" href="{{ team.get_absolute_url }}">{{ team.name }}</a>{% if not forloop.last %},{% endif %}{% endfor %}</td> |
572 | + </tr> |
573 | + {% endif %} |
574 | + |
575 | + {% if team_event_object.announce %} |
576 | + <tr> |
577 | + <th class="form-item-label" scope="row"><label>{% trans "Announcement:" %}</label></th> |
578 | + <td class="form-item-value"><a href="{{ team_event_object.announce }}">{{team_event_object.announce }}</a></td> |
579 | + </tr> |
580 | + {% endif %} |
581 | + |
582 | + {% if team_event_object.global_event %} |
583 | + <tr> |
584 | + <th class="form-item-label" scope="row"><label>{% trans "Global Event:" %}</label></th> |
585 | + <td class="form-item-value"><a href="{{ team_event_object.global_event.get_absolute_url }}">{{team_event_object.global_event.name }}</a></td> |
586 | + </tr> |
587 | + {% endif %} |
588 | </table> |
589 | {% endif %} |
590 | |
591 | === modified file 'loco_directory/templates/events/team_event_detail_comments.inc.html' |
592 | --- loco_directory/templates/events/team_event_detail_comments.inc.html 2010-06-18 18:31:05 +0000 |
593 | +++ loco_directory/templates/events/team_event_detail_comments.inc.html 2010-08-16 18:59:40 +0000 |
594 | @@ -1,18 +1,25 @@ |
595 | {% load i18n %} |
596 | {% if team_event_object.teameventcomment_set.all %} |
597 | <table id="team-event-comments"> |
598 | + <tr> |
599 | + <td colspan="2" class="form-item-value"> |
600 | + {% if user.is_authenticated %} |
601 | + <a href="{% url team-event-comment-new team_event_object.id %}#comment">{% trans "Add Comment" %}</a> |
602 | + {% endif %} |
603 | + </td> |
604 | + </tr> |
605 | {% regroup team_event_object.teameventcomment_set.all by date_created|date:"D d M Y" as comment_list %} |
606 | |
607 | {% for comment_date in comment_list %} |
608 | - <tr> |
609 | - <th class="form-item-label" scope="row" colspan=2><label>{{comment_date.grouper}}</label></th> |
610 | - </tr> |
611 | - {% for comment in comment_date.list %} |
612 | - <tr> |
613 | - <th class="form-item-label" scope="row"><label>{{comment.comment_by}}:</label></th> |
614 | - <td class="form-item-value">{{comment.comment}}</td> |
615 | - </tr> |
616 | - {% endfor %} |
617 | + <tr> |
618 | + <th class="form-item-label" scope="row" colspan=2><label>{{comment_date.grouper}}</label></th> |
619 | + </tr> |
620 | + {% for comment in comment_date.list %} |
621 | + <tr> |
622 | + <th class="form-item-label" scope="row"><label>{{comment.comment_by}}:</label></th> |
623 | + <td class="form-item-value">{{comment.comment}}</td> |
624 | + </tr> |
625 | + {% endfor %} |
626 | {% endfor %} |
627 | </table> |
628 | {% endif %} |
There's a merge conflict on line 8 of the diff. It'd be easiest to just export a new version of the .pot