Merge lp:~mhall119/loco-team-portal/mainpage-map into lp:loco-team-portal

Proposed by Michael Hall
Status: Merged
Merged at revision: 240
Proposed branch: lp:~mhall119/loco-team-portal/mainpage-map
Merge into: lp:loco-team-portal
Diff against target: 433 lines (+196/-38)
5 files modified
EXTERNALS (+2/-0)
loco_directory/locale/loco-directory.pot (+41/-37)
loco_directory/media/css/continents.css (+124/-0)
loco_directory/templates/index.html (+28/-0)
loco_directory/templates/teams/team_list.html (+1/-1)
To merge this branch: bzr merge lp:~mhall119/loco-team-portal/mainpage-map
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+32883@code.launchpad.net

Description of the change

Adds a clickable continent map to the mainpage that will take you to that continent's section of the teams list.

To post a comment you must log in.
Revision history for this message
Michael Hall (mhall119) wrote :

You can see what it looks like here: http://img842.imageshack.us/f/ldmap.png/

On hover it turns the continent gray and shows it's name.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Can you add a note to EXTERNALS or somewhere else where we got the picture from? Once that's done, I'm happy to get it in

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

I'll have to ask Daker where he got it from.

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

Added attribution to EXTERNALS in rev 242

242. By Michael Hall

Added attribution for map image and css to EXTERNALS

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'EXTERNALS'
2--- EXTERNALS 2010-02-17 15:32:25 +0000
3+++ EXTERNALS 2010-08-17 18:02:39 +0000
4@@ -3,3 +3,5 @@
5 - the date picker is provided by the JQuery UI project. See http://jqueryui.com/ for more information about JQuery UI. (Use at least 1.7.2.)
6
7 - the time picker is provided by Maxime Haineault. See http://haineault.com/media/jquery/ui-timepickr/page/ for more information about the JQuery UI Timepicker.
8+
9+- the map image and corresponding CSS is provided by from http://www.noobcube.com/tutorials/html-css/css-image-maps-a-beginners-guide-/ under the GNU Free Documentation License.
10
11=== modified file 'loco_directory/locale/loco-directory.pot'
12--- loco_directory/locale/loco-directory.pot 2010-08-17 14:37:40 +0000
13+++ loco_directory/locale/loco-directory.pot 2010-08-17 18:02:39 +0000
14@@ -8,11 +8,10 @@
15 msgstr ""
16 "Project-Id-Version: PACKAGE VERSION\n"
17 "Report-Msgid-Bugs-To: \n"
18-"POT-Creation-Date: 2010-08-17 14:36+0000\n"
19+"POT-Creation-Date: 2010-08-17 15:10+0000\n"
20 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
21 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
22 "Language-Team: LANGUAGE <LL@li.org>\n"
23-"Language: \n"
24 "MIME-Version: 1.0\n"
25 "Content-Type: text/plain; charset=UTF-8\n"
26 "Content-Transfer-Encoding: 8bit\n"
27@@ -136,71 +135,71 @@
28 msgid "Additional Guests"
29 msgstr ""
30
31-#: events/views.py:139
32+#: events/views.py:146
33 msgid "Team Event removed."
34 msgstr ""
35
36-#: events/views.py:146
37+#: events/views.py:153
38 msgid ""
39 "You can not remove this team event. You are not admin/owner of the Launchpad "
40 "team or on the LoCo Council."
41 msgstr ""
42
43-#: events/views.py:153
44+#: events/views.py:160
45 msgid ""
46 "You can not add a new team event. You are not member of any of the LoCo "
47 "Teams."
48 msgstr ""
49
50-#: events/views.py:205 events/views.py:243
51+#: events/views.py:212 events/views.py:250
52 msgid "New event created."
53 msgstr ""
54
55-#: events/views.py:221 events/views.py:256
56+#: events/views.py:228 events/views.py:263
57 msgid ""
58 "You can not add a new event for this team. You are not member of the team or "
59 "on the LoCo Council."
60 msgstr ""
61
62-#: events/views.py:279
63+#: events/views.py:286
64 msgid "Team Event updated."
65 msgstr ""
66
67-#: events/views.py:290
68+#: events/views.py:297
69 msgid ""
70 "You can not update this team event. You are not member of the team or on the "
71 "LoCo Council."
72 msgstr ""
73
74-#: events/views.py:308
75+#: events/views.py:315
76 msgid "Your registration has been saved."
77 msgstr ""
78
79-#: events/views.py:339
80+#: events/views.py:346
81 msgid "Comment saved."
82 msgstr ""
83
84-#: events/views.py:407
85+#: events/views.py:414
86 msgid "Global Event removed."
87 msgstr ""
88
89-#: events/views.py:413
90+#: events/views.py:420
91 msgid "You can not remove this global event. You are not on the LoCo Council."
92 msgstr ""
93
94-#: events/views.py:427
95+#: events/views.py:434
96 msgid "New Global Event created."
97 msgstr ""
98
99-#: events/views.py:438
100+#: events/views.py:445
101 msgid "You can not add a new global event. You are not on the LoCo Council."
102 msgstr ""
103
104-#: events/views.py:454
105+#: events/views.py:461
106 msgid "Global Event updated."
107 msgstr ""
108
109-#: events/views.py:465
110+#: events/views.py:472
111 msgid "You can not update this global event. You are not on the LoCo Council."
112 msgstr ""
113
114@@ -307,7 +306,7 @@
115 msgstr ""
116
117 #: templates/404.html:4 templates/500.html:4 templates/about.html:4
118-#: templates/base.html:4 templates/index.html:13 templates/loco_council.html:4
119+#: templates/base.html:4 templates/index.html:14 templates/loco_council.html:4
120 msgid "Ubuntu LoCo Team Directory"
121 msgstr ""
122
123@@ -458,7 +457,7 @@
124 msgid "Show All Teams"
125 msgstr ""
126
127-#: templates/base.html:13 templates/index.html:15
128+#: templates/base.html:13 templates/index.html:16
129 #: templates/events/team_event_list.inc.html:8
130 msgid "Teams"
131 msgstr ""
132@@ -467,7 +466,7 @@
133 msgid "Show All Events"
134 msgstr ""
135
136-#: templates/base.html:14 templates/index.html:24
137+#: templates/base.html:14 templates/index.html:52
138 msgid "Events"
139 msgstr ""
140
141@@ -503,61 +502,65 @@
142 msgid "LoCo Directory"
143 msgstr ""
144
145-#: templates/index.html:15
146+#: templates/index.html:16
147 msgid "Show all Teams"
148 msgstr ""
149
150-#: templates/index.html:17
151+#: templates/index.html:18
152 msgid ""
153 "List of all Ubuntu LoCo Teams, with full information such as contact, web "
154 "pages, mailing list, and more."
155 msgstr ""
156
157-#: templates/index.html:18
158+#: templates/index.html:19
159 msgid ""
160 "If there are no teams in your country/region/area, you will be able to add a "
161 "team in the near future."
162 msgstr ""
163
164-#: templates/index.html:24
165+#: templates/index.html:20
166+msgid "Select your continent below to find an Ubuntu LoCo Team near you."
167+msgstr ""
168+
169+#: templates/index.html:52
170 msgid "Show all Events"
171 msgstr ""
172
173-#: templates/index.html:25
174+#: templates/index.html:53
175 msgid ""
176 "List of all Ubuntu LoCo Events, with full information such as location, "
177 "attendees, teams, and more."
178 msgstr ""
179
180-#: templates/index.html:26
181+#: templates/index.html:54
182 msgid "Upcoming Global Events"
183 msgstr ""
184
185-#: templates/index.html:29 templates/events/event_list.html:29
186+#: templates/index.html:57 templates/events/event_list.html:29
187 msgid "Global Events as ical"
188 msgstr ""
189
190-#: templates/index.html:31 templates/events/event_list.html:31
191+#: templates/index.html:59 templates/events/event_list.html:31
192 msgid "Select a global event below to see more information about it:"
193 msgstr ""
194
195-#: templates/index.html:36 templates/events/event_list.html:36
196+#: templates/index.html:64 templates/events/event_list.html:36
197 msgid "There are currently no LoCo Global Events"
198 msgstr ""
199
200-#: templates/index.html:41
201+#: templates/index.html:69
202 msgid "Upcoming Team Events"
203 msgstr ""
204
205-#: templates/index.html:43 templates/events/event_list.html:46
206+#: templates/index.html:71 templates/events/event_list.html:46
207 msgid "Team Events as ical"
208 msgstr ""
209
210-#: templates/index.html:45 templates/events/event_list.html:52
211+#: templates/index.html:73 templates/events/event_list.html:52
212 msgid "There are currently no LoCo Team Events"
213 msgstr ""
214
215-#: templates/index.html:50 templates/events/global_event_detail.inc.html:11
216+#: templates/index.html:78 templates/events/global_event_detail.inc.html:11
217 msgid "Microblogging"
218 msgstr ""
219
220@@ -855,6 +858,11 @@
221 msgid "Copy Event"
222 msgstr ""
223
224+#: templates/events/team_event_detail.html:17
225+#: templates/teams/team_detail.html:110
226+msgid "iCal Feed"
227+msgstr ""
228+
229 #: templates/events/team_event_detail.inc.html:14
230 msgid "Details"
231 msgstr ""
232@@ -1085,10 +1093,6 @@
233 msgid "RSS Feed"
234 msgstr ""
235
236-#: templates/teams/team_detail.html:110
237-msgid "iCal Feed"
238-msgstr ""
239-
240 #: templates/teams/team_detail.html:117
241 #, python-format
242 msgid "%(start_date)s in %(city)s"
243
244=== added file 'loco_directory/media/css/continents.css'
245--- loco_directory/media/css/continents.css 1970-01-01 00:00:00 +0000
246+++ loco_directory/media/css/continents.css 2010-08-17 18:02:39 +0000
247@@ -0,0 +1,124 @@
248+/* Continents */
249+ul#continents {
250+ list-style: none;
251+ background: url(../images/map.png) no-repeat 0 0;
252+ position: relative;
253+ width: 580px;
254+ height: 268px;
255+ margin: 0 auto;
256+ padding: 0;
257+}
258+
259+ul#continents li {
260+ position: absolute;
261+}
262+
263+ul#continents li a{
264+ display: block;
265+ height: 100%;
266+ text-decoration: none;
267+}
268+
269+#northamerica {
270+ width: 227px;
271+ height: 142px;
272+ top: 2px;
273+ left: 0px;
274+}
275+
276+#southamerica {
277+ width: 108px;
278+ height: 130px;
279+ top: 131px;
280+ left: 76px;
281+}
282+
283+#africa {
284+ width: 120px;
285+ height: 140px;
286+ top: 83px;
287+ left: 209px;
288+}
289+
290+#europe {
291+ width: 120px;
292+ height: 84px;
293+ top: 1px;
294+ left: 211px;
295+}
296+
297+#asia {
298+ width: 215px;
299+ height: 175px;
300+ top: 1px;
301+ left: 283px;
302+}
303+
304+#australia {
305+ width: 114px;
306+ height: 95px;
307+ top: 152px;
308+ left: 432px;
309+}
310+
311+ul#continents li a:hover {
312+ background: url(../images/map.png) no-repeat 0 0;
313+}
314+
315+ul#continents li#northamerica a:hover {
316+ background-position: 0 -270px;
317+}
318+
319+ul#continents li#southamerica a:hover {
320+ background-position: -226px -273px;
321+}
322+
323+ul#continents li#africa a:hover {
324+ background-position: -209px -417px;
325+}
326+
327+ul#continents li#europe a:hover {
328+ background-position: -22px -427px;
329+}
330+
331+ul#continents li#asia a:hover {
332+ background-position: -363px -268px;
333+}
334+
335+ul#continents li#australia a:hover {
336+ background-position: -412px -455px;
337+}
338+
339+ul#continents li a span {
340+ display: none;
341+ text-align:left;
342+}
343+
344+ul#continents li a:hover span {
345+ display: block;
346+}
347+
348+ul#continents li a:hover span {
349+ display: block;
350+ padding: 5px;
351+ width: 200px;
352+ background: #000;
353+ position: relative;
354+ top: 68%;
355+ font-size: 11px;
356+ opacity: .75;
357+ filter:alpha(opacity=75);
358+ color: #FFF;
359+ border-radius: 4px;
360+ -moz-border-radius: 4px;
361+ -webkit-border-radius: 4px;
362+}
363+
364+ul#continents li a:hover span strong {
365+ display: block;
366+ margin-bottom: 2px;
367+ font-size: 12px;
368+ color:white;
369+ text-decoration: underline;
370+}
371+
372
373=== added file 'loco_directory/media/images/map.png'
374Binary files loco_directory/media/images/map.png 1970-01-01 00:00:00 +0000 and loco_directory/media/images/map.png 2010-08-17 18:02:39 +0000 differ
375=== modified file 'loco_directory/templates/index.html'
376--- loco_directory/templates/index.html 2010-08-17 00:33:22 +0000
377+++ loco_directory/templates/index.html 2010-08-17 18:02:39 +0000
378@@ -6,6 +6,7 @@
379 {% block extrahead %}
380 {{block.super}}
381 <link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}/css/twidenash.css" />
382+ <link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}/css/continents.css" />
383 {% endblock %}
384
385 {% block content %}
386@@ -16,7 +17,34 @@
387 <p>
388 {% trans "List of all Ubuntu LoCo Teams, with full information such as contact, web pages, mailing list, and more." %}
389 {% trans "If there are no teams in your country/region/area, you will be able to add a team in the near future." %}
390+ {% trans "Select your continent below to find an Ubuntu LoCo Team near you." %}
391 </p>
392+ <ul id="continents">
393+ <li id="northamerica">
394+ <a href="{% url team-list %}#North%20America">
395+ </a>
396+ </li>
397+ <li id="southamerica">
398+ <a href="{% url team-list %}#South%20America">
399+ </a>
400+ </li>
401+ <li id="asia">
402+ <a href="{% url team-list %}#Asia">
403+ </a>
404+ </li>
405+ <li id="australia">
406+ <a href="{% url team-list %}#Australia">
407+ </a>
408+ </li>
409+ <li id="africa">
410+ <a href="{% url team-list %}#Africa">
411+ </a>
412+ </li>
413+ <li id="europe">
414+ <a href="{% url team-list %}#Europe">
415+ </a>
416+ </li>
417+ </ul>
418 </article>
419 <hr class="divide" />
420
421
422=== modified file 'loco_directory/templates/teams/team_list.html'
423--- loco_directory/templates/teams/team_list.html 2010-07-30 20:55:49 +0000
424+++ loco_directory/templates/teams/team_list.html 2010-08-17 18:02:39 +0000
425@@ -21,7 +21,7 @@
426 <article id="main-content" class="main-content">
427 {% if team_list %}
428 {% for continent in continents %}{% if continent.related_teams %}
429- <h2>{{continent.name}}</h2>
430+ <h2><a name="{{continent.name}}">{{continent.name}}</a></h2>
431 <ul>
432 {{colcycle.reset}}
433 {% for team in continent.related_teams %}

Subscribers

People subscribed via source and target branches