Merge lp:~daker/loco-team-portal/fix.1234036 into lp:loco-team-portal

Proposed by Adnane Belmadiaf
Status: Merged
Approved by: Adnane Belmadiaf
Approved revision: 663
Merged at revision: 664
Proposed branch: lp:~daker/loco-team-portal/fix.1234036
Merge into: lp:loco-team-portal
Diff against target: 219 lines (+74/-65)
5 files modified
loco_directory/meetings/views.py (+3/-3)
loco_directory/templates/meetings/team_meeting_detail.html (+8/-8)
loco_directory/templates/meetings/team_meeting_detail.inc.html (+1/-1)
loco_directory/templates/meetings/team_meeting_detail_agenda.inc.html (+4/-5)
loco_directory/templates/meetings/team_meeting_detail_basic.inc.html (+58/-48)
To merge this branch: bzr merge lp:~daker/loco-team-portal/fix.1234036
Reviewer Review Type Date Requested Status
Michael Hall (community) Approve
Review via email: mp+196448@code.launchpad.net

Commit message

Fixed the meeting page

To post a comment you must log in.
Revision history for this message
Chris Johnston (cjohnston) wrote :

Voting does not meet specified criteria. Required: Approve >= 1. Got: 1 Pending.

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

Tests pass

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loco_directory/meetings/views.py'
2--- loco_directory/meetings/views.py 2013-04-14 23:00:20 +0000
3+++ loco_directory/meetings/views.py 2013-11-24 14:12:40 +0000
4@@ -117,13 +117,13 @@
5 #################################################################
6
7 def team_meeting_detail(request, team_slug, team_meeting_id):
8- team_meeting_object = get_object_or_404(TeamMeeting, pk=team_meeting_id)
9+ team_meeting = get_object_or_404(TeamMeeting, pk=team_meeting_id)
10 is_member = False
11- for team_object in team_meeting_object.teams.all():
12+ for team_object in team_meeting.teams.all():
13 is_member = is_member or launchpad.is_team_member(request.user, team_object)
14
15 context = {
16- 'team_meeting_object': team_meeting_object,
17+ 'team_meeting': team_meeting,
18 'user_is_team_member': is_member,
19 }
20 return render_to_response('meetings/team_meeting_detail.html',
21
22=== modified file 'loco_directory/templates/meetings/team_meeting_detail.html'
23--- loco_directory/templates/meetings/team_meeting_detail.html 2012-06-02 11:50:27 +0000
24+++ loco_directory/templates/meetings/team_meeting_detail.html 2013-11-24 14:12:40 +0000
25@@ -1,26 +1,26 @@
26 {% extends "base.html" %}
27 {% load i18n %}
28
29-{% block page_name %}{% trans team_meeting_object.name %}{% endblock %}
30+{% block page_name %}{% trans team_meeting.name %}{% endblock %}
31 {% block extrahead %}{{ block.super }}
32 <meta property="fb:app_id" content="127188230723188"/>
33-<meta property="og:title" content="{{ team_meeting_object.name }}" />
34-<meta property="og:url" content="http://loco.ubuntu.com{% url team-meeting-detail team_meeting_object.first_team.lp_name team_meeting_object.id %}"/>
35+<meta property="og:title" content="{{ team_meeting.name }}" />
36+<meta property="og:url" content="http://loco.ubuntu.com{% url team-meeting-detail team_meeting.first_team.lp_name team_meeting.id %}"/>
37 <meta property="og:image" content="http://loco.ubuntu.com/media/images/cof_orange_hex1.png"/>
38 <meta property="og:site_name" content="Loco Team Portal"/>
39 <meta property="og:type" content="loco-team-portal:meeting"/>
40 {% endblock %}
41
42 {% block sub_nav_links %}
43-{% for team in team_meeting_object.teams.all %}<li><a class="sub-nav-item" href="{{ team.get_absolute_url }}">{{ team.name }}</a>{% endfor %}</li>
44+{% for team in team_meeting.teams.all %}<li><a class="sub-nav-item" href="{{ team.get_absolute_url }}">{{ team.name }}</a>{% endfor %}</li>
45 {% if user.is_authenticated %}
46 {% if user_is_team_member %}
47- <li><a class="sub-nav-item" href="{% url team-meeting-update team_meeting_object.first_team.lp_name team_meeting_object.id %}">{% trans "Edit Details" %}</a></li>
48- <li><a class="sub-nav-item" href="{% url team-meeting-delete team_meeting_object.first_team.lp_name team_meeting_object.id %}">{% trans "Delete Meeting" %}</a></li>
49- <li><a class="sub-nav-item" href="{% url team-meeting-copy team_meeting_object.first_team.lp_name team_meeting_object.id %}">{% trans "Copy Meeting" %}</a></li>
50+ <li><a class="sub-nav-item" href="{% url team-meeting-update team_meeting.first_team.lp_name team_meeting.id %}">{% trans "Edit Details" %}</a></li>
51+ <li><a class="sub-nav-item" href="{% url team-meeting-delete team_meeting.first_team.lp_name team_meeting.id %}">{% trans "Delete Meeting" %}</a></li>
52+ <li><a class="sub-nav-item" href="{% url team-meeting-copy team_meeting.first_team.lp_name team_meeting.id %}">{% trans "Copy Meeting" %}</a></li>
53 {% endif %}
54 {% endif %}
55-<li><a class="sub-nav-item" href="{% url meeting-ical team_meeting_object.first_team.lp_name team_meeting_object.id %}">{% trans "iCal Feed" %}</a></li>
56+<li><a class="sub-nav-item" href="{% url meeting-ical team_meeting.first_team.lp_name team_meeting.id %}">{% trans "iCal Feed" %}</a></li>
57 {% endblock %}
58
59 {% block content %}
60
61=== modified file 'loco_directory/templates/meetings/team_meeting_detail.inc.html'
62--- loco_directory/templates/meetings/team_meeting_detail.inc.html 2013-04-14 23:00:20 +0000
63+++ loco_directory/templates/meetings/team_meeting_detail.inc.html 2013-11-24 14:12:40 +0000
64@@ -3,9 +3,9 @@
65 <section class="span-9">
66 <div class="box_content">
67 <div class="pagelet">
68- <h3>{{ team_meeting_object.name }}</h3>
69 {% include "meetings/team_meeting_detail_basic.inc.html" %}
70 </div>
71+ <h3 style="margin-left: 15px;">{% trans "Agenda Items" %}</h3>
72 {% include "meetings/team_meeting_detail_agenda.inc.html" %}
73 </div>
74 </section>
75
76=== modified file 'loco_directory/templates/meetings/team_meeting_detail_agenda.inc.html'
77--- loco_directory/templates/meetings/team_meeting_detail_agenda.inc.html 2013-04-14 23:00:20 +0000
78+++ loco_directory/templates/meetings/team_meeting_detail_agenda.inc.html 2013-11-24 14:12:40 +0000
79@@ -1,23 +1,22 @@
80 {% load i18n markup %}
81 {% load recurse %}
82 {% if user_is_team_member %}
83- <a style="margin-bottom: 10px;" class="contact-button" href="{% url agenda-item-new team_meeting_object.id %}">{% trans 'Add Agenda Item' %}</a>
84+ <a style="margin-bottom: 10px;" class="contact-button" href="{% url agenda-item-new team_meeting.id %}">{% trans 'Add Agenda Item' %}</a>
85 {% endif %}
86
87-{% if team_meeting_object.agenda %}
88- {% recurse item.children.all with team_meeting_object.agenda.top as item %}
89+{% if team_meeting.agenda %}
90+ {% recurse item.children.all with team_meeting.agenda.top as item %}
91 <ul class="agenda-list">
92 {% loop %}
93 <li class="agenda-item">
94 <div style="overflow: auto">
95 <div style="float: left; width: 615px">
96 {% if user_is_team_member %}
97- <a class="agenda-title" title="{% trans 'Update Agenda Item:' %} {{ item.title }}" href="{% url agenda-item-update team_meeting_object.id item.id %}">{{ item.title }}</a>
98+ <a class="agenda-title" title="{% trans 'Update Agenda Item:' %} {{ item.title }}" href="{% url agenda-item-update team_meeting.id item.id %}">{{ item.title }}</a>
99 {% else %}
100 <span class="agenda-title" >{{ item.title }}</span>
101 {% endif %}
102 ‒ <a class="agenda-sig" href="{% url profile-detail item.owner.user.username %}">{{ item.owner.realname }}</a>
103- @ {{ item.created_date|date:"D, d N Y H:i T" }}
104 {% if item.description %}
105 <div class="agenda-description">{{ item.description|markdown:'safe' }}</div>
106 {% endif %}
107
108=== modified file 'loco_directory/templates/meetings/team_meeting_detail_basic.inc.html'
109--- loco_directory/templates/meetings/team_meeting_detail_basic.inc.html 2011-06-17 17:10:41 +0000
110+++ loco_directory/templates/meetings/team_meeting_detail_basic.inc.html 2013-11-24 14:12:40 +0000
111@@ -1,50 +1,60 @@
112 {% load i18n %}
113-{% if team_meeting_object %}
114-<table id="team-meeting-basic">
115- {% if team_meeting_object.date_begin %}
116- <tr>
117- <th class="form-item-label" scope="row">{% trans "When:" %}</th>
118- <td class="form-item-value">
119- {% ifequal team_meeting_object.local_date_begin|date team_meeting_object.local_date_end|date %}
120- {{ team_meeting_object.local_date_begin|date:"D, d N Y H:i" }} - {{ team_meeting_object.local_date_end|date:"H:i T (O)" }}
121- {% else %}
122- {{ team_meeting_object.local_date_begin|date:"D, d N Y H:i" }} - {{ team_meeting_object.local_date_end|date:"D, d N Y H:i T (O)" }}
123- {% endifequal %}
124- </td>
125- </tr>
126-{% endif %}
127-
128-{% if team_meeting_object.teams.all %}
129- <tr>
130- <th class="form-item-label" scope="row">{% trans "Organizing Team:" %}</th>
131- <td class="form-item-value">{% for team in team_meeting_object.teams.all %}<a title="{% trans "Get more information about this team" %}" href="{{ team.get_absolute_url }}">{{ team.name }}</a>{% if not forloop.last %},{% endif %}{% endfor %}</td>
132- </tr>
133- <tr>
134- <th class="form-item-label" scope="row">{% trans "Meeting Channel:" %}</th>
135- <td class="form-item-value"><a title="{% trans "Join Channel" %} {{ team_meeting_object.channel }}" href="#" onclick="$('#webchat').show('fast', function() {$(window).scrollTop($('#webchat').position().top);} );">{{ team_meeting_object.channel }}</a></td>
136- </tr>
137- <tr>
138- <th class="form-item-label" scope="row">{% trans "Meeting Chair:" %}</th>
139- <td class="form-item-value">
140- {% if team_meeting_object.chair %}
141- <a target="launchpaduser" href="https://launchpad.net/~{{team_meeting_object.chair.user.username}}" >{{ team_meeting_object.chair }}</a>
142- {% else %}
143- {% trans "No Meeting Chair Assigned" %}
144- {% endif %}
145- </td>
146- </tr>
147- {% if team_meeting_object.minutes %}
148- <tr>
149- <th class="form-item-label" scope="row">{% trans "Meeting Minutes:" %}</th>
150- <td class="form-item-value"><a href="{{ team_meeting_object.minutes }}">{{ team_meeting_object.minutes }}</a></td>
151- </tr>
152- {% endif %}
153- {% if team_meeting_object.logs %}{% if team_meeting_object.is_past %}
154- <tr>
155- <th class="form-item-label" scope="row">{% trans "Meeting Logs:" %}</th>
156- <td class="form-item-value"><a href="{{ team_meeting_object.logs }}">{{ team_meeting_object.logs }}</a></td>
157- </tr>
158- {% endif %}{% endif %}
159-{% endif %}
160-</table>
161+{% if team_meeting %}
162+ <div>
163+ <h2>
164+ {% if team_meeting.teams.all %}
165+ {% for team in team_meeting.teams.all %}
166+ <a title="{% trans "Get more information about this team" %}" href="{{ team.get_absolute_url }}">{{ team.name }}</a>
167+ {% if not forloop.last %},{% endif %}{% endfor %}
168+ {% endif %}
169+ </h2>
170+ <div style="display:block;">
171+ <div id="loco-location">
172+ <span title="{% trans "Meeting Channel" %}" class="pictogram place"></span>
173+ <span class="value ellipsis medium-ellipsis" style="width: 350px;">
174+ <a target="_blank" href="http://webchat.freenode.net/?channels={{ team_meeting.channel }}">{{ team_meeting.channel }}</a>
175+ </span>
176+ </div>
177+
178+ <div id="loco-language">
179+ <span title="{% trans "Meeting Chair" %}" class="pictogram language"></span>
180+ <span class="value ellipsis" style="width: 350px;">
181+ {% if team_meeting.chair %}
182+ <a href="{% url profile-detail team_meeting.chair.user.username %}" >{{ team_meeting.chair }}</a>
183+ {% else %}
184+ {% trans "No Meeting Chair Assigned" %}
185+ {% endif %}
186+ </span>
187+ </div>
188+
189+ <div id="loco-location">
190+ <span class="pictogram calendar" title="{% trans "Meeting Channel" %}"></span>
191+ <span class="value ellipsis" style="width: auto;">
192+ {% ifequal team_meeting.local_date_begin|date team_meeting.local_date_end|date %}
193+ {{ team_meeting.local_date_begin|date:"D, d N Y H:i" }} - {{ team_meeting.local_date_end|date:"H:i T (O)" }}
194+ {% else %}
195+ {{ team_meeting.local_date_begin|date:"D, d N Y H:i" }} - {{ team_meeting.local_date_end|date:"D, d N Y H:i T (O)" }}
196+ {% endifequal %}
197+ </span>
198+ </div>
199+
200+ {% if team_meeting.minutes %}
201+ <div id="loco-location">
202+ <span class="pictogram announcement" title="{% trans "Meeting Channel" %}"></span>
203+ <span class="value ellipsis" style="width: auto;">
204+ <a href="{{ team_meeting.minutes }}">{{ team_meeting.minutes }}</a>
205+ </span>
206+ </div>
207+ {% endif %}
208+
209+ {% if team_meeting.logs %}{% if team_meeting.is_past %}
210+ <div id="loco-location">
211+ <span class="pictogram forums" title="{% trans "Meeting Channel" %}"></span>
212+ <span class="value ellipsis" style="width: auto;">
213+ <a href="{{ team_meeting.logs }}">{{ team_meeting.logs }}</a>
214+ </span>
215+ </div>
216+ {% endif %}{% endif %}
217+ </div>
218+ </div>
219 {% endif %}

Subscribers

People subscribed via source and target branches