Merge lp:~ronnie.vd.c/loco-team-portal/team-page-style into lp:loco-team-portal

Proposed by Ronnie
Status: Merged
Approved by: Michael Hall
Approved revision: 405
Merged at revision: 403
Proposed branch: lp:~ronnie.vd.c/loco-team-portal/team-page-style
Merge into: lp:loco-team-portal
Diff against target: 100 lines (+33/-21)
2 files modified
loco_directory/media/css/newstyle.css (+11/-0)
loco_directory/templates/teams/team_detail.html (+22/-21)
To merge this branch: bzr merge lp:~ronnie.vd.c/loco-team-portal/team-page-style
Reviewer Review Type Date Requested Status
LoCo Team Portal Developers Pending
Review via email: mp+50449@code.launchpad.net

Description of the change

Restyle of the Team Detail page

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loco_directory/media/css/newstyle.css'
2--- loco_directory/media/css/newstyle.css 2011-02-18 02:37:49 +0000
3+++ loco_directory/media/css/newstyle.css 2011-02-19 14:23:54 +0000
4@@ -62,6 +62,10 @@
5 padding: 2px 10px !important;
6 }
7
8+.relative {
9+ position: relative;
10+}
11+
12 br.clear {
13 clear: left;
14 }
15@@ -464,3 +468,10 @@
16 width: 900px;
17 margin: 0 auto;
18 }
19+
20+#locobranding {
21+ width: 96px;
22+ height: 96px;
23+ position: absolute;
24+ right: 10px;
25+}
26
27=== modified file 'loco_directory/templates/teams/team_detail.html'
28--- loco_directory/templates/teams/team_detail.html 2011-02-17 21:16:56 +0000
29+++ loco_directory/templates/teams/team_detail.html 2011-02-19 14:23:54 +0000
30@@ -93,9 +93,9 @@
31 {% endblock %}
32
33 {% block content %}
34-<article class="minor-content alone">
35+<article class="minor-content relative">
36 <h2><a href="https://launchpad.net/~{{ team.lp_name }}">{{ team.name }}</a></h2>
37-
38+ <img id="locobranding" src="{{ team.mugshot_url }}" alt="" title="{{ team.name }}" />
39 <table>
40 <tr>
41 <th class="form-item-label" scope="row"><label>{% trans "Location:" %}</label></th>
42@@ -199,15 +199,33 @@
43 </tr>
44 </table>
45 </article>
46-
47+{% comment %}
48 <article class="minor-content">
49 <img id="locobranding" src="{{ team.mugshot_url }}" alt="" title="{{ team.name }}" />
50 </article>
51+{% endcomment %}
52+
53+{% if team.microbloghashtag %}
54+<article class="minor-content alone">
55+ <h2>{% trans "Microblogging" %} #{{team.microbloghashtag}}</h2>
56+ <p><script src="{{MEDIA_URL}}js/twidenash.js?{{team.microbloghashtag}}"></script></p>
57+</article>
58+{% endif %}
59
60 <hr class="divide" />
61
62+{% if team.irc_chan %}
63+ <div id="webchat">
64+ {% if user.is_authenticated %}
65+ <iframe src="http://webchat.freenode.net/?channels={{ team.irc_chan }}&prompt=1&uio=OT10cnVlJjEwPXRydWUmMTE9MjM218&nick={{ user.username }}" width="900" height="400"></iframe>
66+ {% else %}
67+ <iframe src="http://webchat.freenode.net/?channels={{ team.irc_chan }}&prompt=1&uio=OT10cnVlJjEwPXRydWUmMTE9MjM218&nick=locodir-user" width="900" height="400"></iframe>
68+ {% endif %}
69+ </div>
70+{% endif %}
71+
72 {% if team.flickr_id or team.picasa_id or team.pixie_id %}
73-<article class="minor-content alone">
74+<article class="main-content">
75 <h2>{% trans "Photos from" %} {{ team.name }}</h2>
76 <div style="width:100%;" id="flickr"> </div>
77 <div style="width:100%;" id="picasa"> </div>
78@@ -215,22 +233,5 @@
79 </article>
80 {% endif %}
81
82-{% if team.microbloghashtag %}
83-<article class="minor-content">
84- <h2>{% trans "Microblogging" %} #{{team.microbloghashtag}}</h2>
85- <p><script src="{{MEDIA_URL}}js/twidenash.js?{{team.microbloghashtag}}"></script></p>
86-</article>
87-{% endif %}
88
89 {% endblock %}
90-{% block general %}
91- {% if team.irc_chan %}
92- <div id="webchat">
93- {% if user.is_authenticated %}
94- <iframe src="http://webchat.freenode.net/?channels={{ team.irc_chan }}&prompt=1&uio=OT10cnVlJjEwPXRydWUmMTE9MjM218&nick={{ user.username }}" width="900" height="400"></iframe>
95- {% else %}
96- <iframe src="http://webchat.freenode.net/?channels={{ team.irc_chan }}&prompt=1&uio=OT10cnVlJjEwPXRydWUmMTE9MjM218&nick=locodir-user" width="900" height="400"></iframe>
97- {% endif %}
98- </div>
99- {% endif %}
100-{% endblock %}

Subscribers

People subscribed via source and target branches