Merge lp:~cjohnston/loco-team-portal/bugfix-lp-539929 into lp:loco-team-portal

Proposed by Chris Johnston
Status: Merged
Approved by: Daniel Holbach
Approved revision: 84
Merge reported by: Daniel Holbach
Merged at revision: not available
Proposed branch: lp:~cjohnston/loco-team-portal/bugfix-lp-539929
Merge into: lp:loco-team-portal
Diff against target: 20 lines (+4/-4)
1 file modified
loco_directory/templates/teams/team_detail.html (+4/-4)
To merge this branch: bzr merge lp:~cjohnston/loco-team-portal/bugfix-lp-539929
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Needs Fixing
Review via email: mp+21788@code.launchpad.net

Description of the change

Changes the list of upcoming events on the team page to a list and adds the start date

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Can you maybe try to use a bit of indentation? That'd make it a bit easier to read. As far as I can see the nesting of <li> tags is broken (opened in for loop, closed outside of it).

The translators comment seems to refer to "in". Is that still in there somewhere? Does it make sense to have this translated anyway? What about languages where the word ordering changes?

Would it make sense to pull out the template code that generates the link title and stuff it into the model?

Revision history for this message
Daniel Holbach (dholbach) :
review: Needs Fixing

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loco_directory/templates/teams/team_detail.html'
2--- loco_directory/templates/teams/team_detail.html 2010-03-16 21:46:16 +0000
3+++ loco_directory/templates/teams/team_detail.html 2010-03-21 04:27:26 +0000
4@@ -97,12 +97,12 @@
5 </tr>
6 <tr>
7 <th scope="row"><label>{% trans "Upcoming Events:" %}</label></th>
8- <td>{% if team.teamevent_set.next_5_events %}
9+ <td><ul>{% if team.teamevent_set.next_5_events %}
10 {% for team_event in team.teamevent_set.next_5_events %}
11 {% comment %}TRANSLATORS: If event has a venue, show: date "in" city{% endcomment %}
12- <a title="{% if team_event.venue %}{% blocktrans with team_event.date_begin|date:"M d" as start_date and team_event.venue.city as city %}{{start_date}} in {{city}}{% endblocktrans %}{% else %}{{team_event.date_begin|date:"M d"}}{% endif %}" href="{% url team-event-detail team_event.id %}">{{ team_event.name }}</a>{% if not forloop.last %},{% endif %}
13- {% endfor %} (<a href="{% url team-event-list team.lp_name %}">{% trans "Show detailed Event List" %}</a>)
14- {% else %}{% trans "None Specified" %}{% endif %}</td>
15+ <li><a title="{% if team_event.venue %}{% blocktrans with team_event.date_begin|date:"M d" as start_date and team_event.venue.city as city %}{{start_date}} in {{city}}{% endblocktrans %}{% else %}{{team_event.date_begin|date:"M d"}}{% endif %}" href="{% url team-event-detail team_event.id %}">{{ team_event.name }}</a> {% trans "on: " %}{{ team_event.date_begin|date}}
16+ {% endfor %}</li><li><a href="{% url team-event-list team.lp_name %}">{% trans "Show detailed Event List" %}</a></li>
17+ {% else %}{% trans "None Specified" %}{% endif %}</ul></td>
18 </tr>
19
20 </table>

Subscribers

People subscribed via source and target branches