Merge lp:~mhall119/summit/new_schedule_improvements into lp:summit

Proposed by Michael Hall
Status: Merged
Approved by: Chris Johnston
Approved revision: 253
Merged at revision: 252
Proposed branch: lp:~mhall119/summit/new_schedule_improvements
Merge into: lp:summit
Diff against target: 24 lines (+2/-2)
2 files modified
summit/schedule/templates/schedule/daily.html (+1/-1)
summit/schedule/views.py (+1/-1)
To merge this branch: bzr merge lp:~mhall119/summit/new_schedule_improvements
Reviewer Review Type Date Requested Status
Chris Johnston Approve
Review via email: mp+89568@code.launchpad.net

Commit message

Display time headers in 24-hour time, add end time

Description of the change

Display time headers in 24-hour time, add end time

To post a comment you must log in.
Revision history for this message
Chris Johnston (cjohnston) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'summit/schedule/templates/schedule/daily.html'
2--- summit/schedule/templates/schedule/daily.html 2012-01-20 23:51:48 +0000
3+++ summit/schedule/templates/schedule/daily.html 2012-01-22 03:27:23 +0000
4@@ -96,7 +96,7 @@
5
6 {% for slot, meetings in schedule.items %}
7 <table class="basic">
8-<thead><tr><th colspan="2">{{slot.start.time|strftime:"%I:%M %p"}}</th></tr></thead>
9+<thead><tr><th colspan="2">{{slot.start.time|strftime:"%H:%M"}} - {{slot.end.time|strftime:"%H:%M"}}</th></tr></thead>
10 <tbody>
11 {% for room, agenda in meetings.items %}
12 <tr style="background-color: {{ agenda.meeting.track_color }};">
13
14=== modified file 'summit/schedule/views.py'
15--- summit/schedule/views.py 2012-01-21 14:30:30 +0000
16+++ summit/schedule/views.py 2012-01-22 03:27:23 +0000
17@@ -91,7 +91,7 @@
18 continue
19 if not slot in schedule:
20 schedule[slot] = SortedDict()
21- for agenda in slot.agenda_set.order_by('room__name'):
22+ for agenda in slot.agenda_set.select_related().order_by('room__name'):
23 if not agenda.meeting.private or attendee in agenda.meeting.attendees:
24 schedule[slot][agenda.room] = agenda
25

Subscribers

People subscribed via source and target branches