Merge lp:~cjohnston/summit/schedule-list-changes into lp:summit

Proposed by Chris Johnston
Status: Merged
Approved by: Chris Johnston
Approved revision: 526
Merged at revision: 521
Proposed branch: lp:~cjohnston/summit/schedule-list-changes
Merge into: lp:summit
Diff against target: 214 lines (+56/-113)
4 files modified
summit/media/css/site.css (+0/-26)
summit/schedule/templates/schedule/schedule_list.html (+0/-55)
summit/schedule/templates/schedule/summit.html (+55/-31)
summit/settings.py (+1/-1)
To merge this branch: bzr merge lp:~cjohnston/summit/schedule-list-changes
Reviewer Review Type Date Requested Status
Adnane Belmadiaf Approve
Review via email: mp+157561@code.launchpad.net

Commit message

Makes schedule list info look nicer

To post a comment you must log in.
525. By Chris Johnston

Fixes twitter js loading

526. By Chris Johnston

Update branch revno requirement

Revision history for this message
Adnane Belmadiaf (daker) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'summit/media/css/site.css'
2--- summit/media/css/site.css 2012-10-27 15:27:30 +0000
3+++ summit/media/css/site.css 2013-04-07 23:44:21 +0000
4@@ -155,32 +155,6 @@
5 float: none;
6 }
7
8-/* Reset default unordered list display style to remove bulleting/spacing */
9-#column-schedule ul {
10- list-style: none;
11-}
12-/* Stack LI elements horizontally instead of the default vertical orientation */
13-#column-schedule li {
14- float: left;
15- margin-right: 1em;
16-}
17-
18-/* Reset default unordered list display style to remove bulleting/spacing */
19-#column-schedule-inner ul {
20- list-style: disc;
21- /*border-right: dotted;
22- border-right-width: 1px;*/
23-}
24-/* Stack LI elements horizontally instead of the default vertical orientation */
25-#column-schedule-inner li {
26- float: none;
27- margin-right: 1em;
28- padding: 0em;
29- line-height: 1.5em;
30- margin-bottom: 0px;
31- margin-top: 0px;
32-}
33-
34 /* Social widgets */
35 .social-widget {
36 float: left;
37
38=== removed file 'summit/schedule/templates/schedule/schedule_list.html'
39--- summit/schedule/templates/schedule/schedule_list.html 2013-03-05 22:42:44 +0000
40+++ summit/schedule/templates/schedule/schedule_list.html 1970-01-01 00:00:00 +0000
41@@ -1,55 +0,0 @@
42-{% load datetime %}
43-
44-<h2>Schedule</h2>
45-<div id="column-schedule">
46-<ul>
47-<li>
48-By date:
49-<div id="column-schedule-inner">
50-<ul>
51- {% for date in summit.days %}
52- <li><a href="/{{ summit.name }}/{{ date|strftime:"%Y-%m-%d" }}">{{ date|strftime:"%A" }}</a></li>
53- {% endfor %}
54-</ul>
55-</div>
56-</li>
57-<li>
58-<div id="column-schedule-inner">
59- By {{ TRACK_DISPLAY_NAME }}:
60-<ul>
61- {% for track in tracks %}
62- <li><a href="/{{ summit.name }}/track/{{ track.slug|lower }}">{{ track.title }}</a></li>
63- {% endfor %}
64-</ul>
65-</div>
66-</li>
67-<li>
68-<div id="column-schedule-inner">
69-By room:
70-<ul>
71- {% for room in summit.public_rooms %}
72- {% if edit %}
73- {% ifequal room.type 'plenary' %}
74- <li><a href="/{{ summit.name }}/{{ room.name }}">{{ room.title }}</a> (plenary)</li>
75- {% else %}
76- <li><a href="/{{ summit.name }}/{{ room.name }}">{{ room.title }}</a> ({{ room.size }})</li>
77- {% endifequal %}
78- {% else %}
79- {% ifequal room.type 'plenary' %}{% else %}
80- <li><a href="/{{ summit.name }}/{{ room.name }}">{{ room.title }}</a></li>
81- {% endifequal %}
82- {% endif %}
83- {% endfor %}
84- {% if summit.private_rooms %}
85- {% if edit %}
86- <br />
87- Private:
88- {% for room in summit.private_rooms %}
89- <li><a href="/{{ summit.name }}/{{ room.name }}">{{ room.title }}</a> ({{ room.size }})</li>
90- {% endfor %}
91- {% endif %}
92- {% endif %}
93-</ul>
94-</div>
95-</li>
96-</div>
97
98=== modified file 'summit/schedule/templates/schedule/summit.html'
99--- summit/schedule/templates/schedule/summit.html 2013-03-20 02:00:45 +0000
100+++ summit/schedule/templates/schedule/summit.html 2013-04-07 23:44:21 +0000
101@@ -78,25 +78,62 @@
102 </article>
103 </div>
104 <div class="row">
105- <article class="span-8">
106- {% include "schedule/schedule_list.html" %}
107- </article>
108- <article class="span-4 last">
109- {% if summit.hashtag %}
110- <div class="share alone">
111- <h3>Latest from Twitter</h3>
112- <div id="tweets">
113- <ul id="twitter_update_list">
114- <li>Loading tweets&hellip;</li>
115- </ul>
116- <a href="http://twitter.com/{{ summit.hashtag }}">@{{ summit.hashtag }}</a>
117- </div>
118- </div>
119- <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
120- <script type="text/javascript" src="http://api.twitter.com/1/statuses/user_timeline.json?screen_name={{ summit.hashtag }}&callback=twitterCallback2&amp;count=5"></script>
121- {% endif %}
122- </article>
123+ <div class="twelve-col">
124+ <h2>Schedule</h2>
125+ </div>
126 </div>
127+<div class="row">
128+ <div class="two-col box box-highlight">
129+ By date:
130+ <ul class="list list-ubuntu">
131+ {% for date in summit.days %}
132+ <li><a href="/{{ summit.name }}/{{ date|strftime:"%Y-%m-%d" }}">{{ date|strftime:"%A" }}</a></li>
133+ {% endfor %}
134+ </ul>
135+ </div>
136+ <div class="three-col box box-highlight">
137+ By {{ TRACK_DISPLAY_NAME }}:
138+ <ul class="list list-ubuntu">
139+ {% for track in tracks %}
140+ <li><a href="/{{ summit.name }}/track/{{ track.slug|lower }}">{{ track.title }}</a></li>
141+ {% endfor %}
142+ </ul>
143+ </div>
144+ <div class="three-col box box-highlight">
145+ By room:
146+ <ul class="list list-ubuntu">
147+ {% for room in summit.public_rooms %}
148+ {% ifnotequal room.type 'plenary' %}
149+ <li><a href="/{{ summit.name }}/{{ room.name }}">{{ room.title }}</a>{% if edit %} ({{ room.size }}){% endif %}</li>
150+ {% endifnotequal %}
151+ {% endfor %}
152+ {% if edit %}
153+ {% ifequal room.type 'plenary' %}
154+ <li><a href="/{{ summit.name }}/{{ room.name }}">{{ room.title }}</a> (plenary)</li>
155+ {% endifequal %}
156+ {% if summit.private_rooms %}
157+ <br />
158+ Private:
159+ {% for room in summit.private_rooms %}
160+ <li><a href="/{{ summit.name }}/{{ room.name }}">{{ room.title }}</a> ({{ room.size }})</li>
161+ {% endfor %}
162+ {% endif %}
163+ {% endif %}
164+ </ul>
165+ </div>
166+ <div class="three-col last-col box box-padded-feature">
167+ {% if summit.hashtag %}
168+ <h3>Latest from Twitter</h3>
169+ <div id="tweets">
170+ <ul id="twitter_update_list">
171+ <li>Loading tweets&hellip;</li>
172+ </ul>
173+ <a href="http://twitter.com/{{ summit.hashtag }}">@{{ summit.hashtag }}</a>
174+ </div>
175+ <script type="text/javascript" src="https://search.twitter.com/search.json?q={{ summit.hashtag|urlencode }}&callback=twitterCallback2&count=5"></script>
176+ {% endif %}
177+ </div>
178+ </div>
179 {% endblock %}
180 {% block closure %}
181 <style>
182@@ -106,19 +143,6 @@
183 #page-header { text-align: center; }
184 #page-header a { height: 24px; line-height: 1; float: none; display: inline; }
185 .span-8, .span-9, .span-3, .span-12 { width: 100%; }
186- #column-schedule ul li {
187- background: #efefef;
188- border-bottom: 1px dotted #cccccc;
189- list-style: none;
190- text-align: center;
191- font-size: 24px;
192- line-height: 24px;
193- min-height: 24px;
194- width: 100%;
195- display: block;
196- padding: 0;
197- margin: 0;
198- }
199 #fb-root * { width: auto; }
200
201 #sub-nav-container {
202
203=== modified file 'summit/settings.py'
204--- summit/settings.py 2013-04-07 18:54:26 +0000
205+++ summit/settings.py 2013-04-07 23:44:21 +0000
206@@ -167,7 +167,7 @@
207 'bzr_apps': ('http://bazaar.launchpad.net/~django-foundations-dev/ubuntu-django-foundations/bzr_apps', '7'),
208
209 ## ubuntu-website supplied templates and styles
210- 'ubuntu_website': ('http://bazaar.launchpad.net/~ubuntu-community-webthemes/ubuntu-community-webthemes/light-django-theme', '63'),
211+ 'ubuntu_website': ('http://bazaar.launchpad.net/~ubuntu-community-webthemes/ubuntu-community-webthemes/light-django-theme', '64'),
212
213 ## linaro-website supplied templates and styles
214 'linaro_website': ('http://bazaar.launchpad.net/~linaro-connect-theme-devs/ubuntu-community-webthemes/light-django-linaro-theme', '52'),

Subscribers

People subscribed via source and target branches