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
=== modified file 'summit/schedule/templates/schedule/daily.html'
--- summit/schedule/templates/schedule/daily.html 2012-01-20 23:51:48 +0000
+++ summit/schedule/templates/schedule/daily.html 2012-01-22 03:27:23 +0000
@@ -96,7 +96,7 @@
9696
97{% for slot, meetings in schedule.items %}97{% for slot, meetings in schedule.items %}
98<table class="basic">98<table class="basic">
99<thead><tr><th colspan="2">{{slot.start.time|strftime:"%I:%M %p"}}</th></tr></thead>99<thead><tr><th colspan="2">{{slot.start.time|strftime:"%H:%M"}} - {{slot.end.time|strftime:"%H:%M"}}</th></tr></thead>
100<tbody>100<tbody>
101{% for room, agenda in meetings.items %}101{% for room, agenda in meetings.items %}
102<tr style="background-color: {{ agenda.meeting.track_color }};">102<tr style="background-color: {{ agenda.meeting.track_color }};">
103103
=== modified file 'summit/schedule/views.py'
--- summit/schedule/views.py 2012-01-21 14:30:30 +0000
+++ summit/schedule/views.py 2012-01-22 03:27:23 +0000
@@ -91,7 +91,7 @@
91 continue91 continue
92 if not slot in schedule:92 if not slot in schedule:
93 schedule[slot] = SortedDict()93 schedule[slot] = SortedDict()
94 for agenda in slot.agenda_set.order_by('room__name'):94 for agenda in slot.agenda_set.select_related().order_by('room__name'):
95 if not agenda.meeting.private or attendee in agenda.meeting.attendees:95 if not agenda.meeting.private or attendee in agenda.meeting.attendees:
96 schedule[slot][agenda.room] = agenda96 schedule[slot][agenda.room] = agenda
97 97

Subscribers

People subscribed via source and target branches