Merge lp:~cjohnston/summit/daily-updates into lp:summit

Proposed by Chris Johnston
Status: Superseded
Proposed branch: lp:~cjohnston/summit/daily-updates
Merge into: lp:summit
Prerequisite: lp:~cjohnston/summit/920751
Diff against target: 46 lines (+12/-3)
2 files modified
summit/schedule/templates/schedule/daily.html (+10/-2)
summit/schedule/views.py (+2/-1)
To merge this branch: bzr merge lp:~cjohnston/summit/daily-updates
Reviewer Review Type Date Requested Status
Michael Hall (community) Needs Fixing
Review via email: mp+89817@code.launchpad.net

This proposal supersedes a proposal from 2012-01-24.

This proposal has been superseded by a proposal from 2012-01-24.

To post a comment you must log in.
lp:~cjohnston/summit/daily-updates updated
257. By Michael Hall

[r=chrisjohnston] Fix localtime conversion issues

258. By Michael Hall

[r=chrisjohnston] Fix wide schedule links and tests

Revision history for this message
Michael Hall (mhall119) wrote :

Merge conflicts in the diff

Revision history for this message
Michael Hall (mhall119) :
review: Needs Fixing
lp:~cjohnston/summit/daily-updates updated
259. By Chris Johnston

[r=mhall119] Renames the app to "The Summit Scheduler" and adds/fixes page titles across the board.

260. By Chris Johnston

Removes conflict

Unmerged revisions

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-23 01:18:55 +0000
3+++ summit/schedule/templates/schedule/daily.html 2012-01-24 05:14:24 +0000
4@@ -95,10 +95,17 @@
5
6 {% for slot, meetings in schedule.items %}
7 <table class="basic">
8-<thead><tr><th colspan="2">{{slot.start.time|strftime:"%H:%M"}} - {{slot.end.time|strftime:"%H:%M"}}</th></tr></thead>
9+<thead><tr><th colspan="2">{{slot.start.time|strftime:"%H:%M"}} - {{slot.end.time|strftime:"%H:%M"}} {% ifequal slot.type 'plenary' %}[PLENARY]{% endifequal %}</th></tr></thead>
10 <tbody>
11+{% if slot.type == 'lunch' %}
12+<tr style="background-color: #AAFFAA;">
13+<td colspan="2" style="text-align: center;">
14+Lunch
15+</td>
16+</tr>
17+{% else %}
18 {% for room, agenda in meetings.items %}
19-<tr style="background-color: {{ agenda.meeting.track_color }};">
20+<tr style="background-color: {% ifequal agenda.meeting.type 'plenary' %}#ffffe0{% else %}{{ agenda.meeting.track_color }}{% endifequal %}; {% if agenda.meeting.private %}border: 1px; border-style: solid; border-color: #FF0000;{% endif %}">
21 <td width="75%">
22 <span onMouseOver="show_agenda_details({{agenda.id}});" onMouseOut="hide_agenda_details({{agenda.id}});;">
23 <a href="{{agenda.meeting.meeting_page_url}}" style="color: #000000;">
24@@ -138,6 +145,7 @@
25 </td>
26 </tr>
27 {% endfor %}
28+{% endif %}
29 </tbody>
30 </table>
31 {% endfor %}
32
33=== modified file 'summit/schedule/views.py'
34--- summit/schedule/views.py 2012-01-24 04:30:40 +0000
35+++ summit/schedule/views.py 2012-01-24 05:14:24 +0000
36@@ -74,8 +74,9 @@
37 day = datetime.timedelta(days=1)
38
39 schedule = SortedDict()
40+
41 for slot in summit.slot_set.filter(start_utc__gte=utc_date, end_utc__lte=(utc_date+day)).order_by('start_utc'):
42- if not (slot.type == 'open' or slot.type == 'plenary'):
43+ if not (slot.type == 'open' or slot.type == 'plenary' or slot.type == 'lunch'):
44 continue
45 if not slot in schedule:
46 schedule[slot] = SortedDict()

Subscribers

People subscribed via source and target branches