Skip to content

Commit ba60c11

Browse files
committed
Add links to session materials pages to the rows on the by-type view of the agenda. Commit ready for merge.
- Legacy-Id: 12352
1 parent 6ed7fed commit ba60c11

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

ietf/meeting/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ def agenda_by_type(request, num=None, type=None, name=None, owner=None):
590590
else:
591591
person = get_person_by_email(owner)
592592
schedule = get_schedule_by_name(meeting, person, name)
593-
assignments = schedule.assignments.order_by('session__type__slug','timeslot__time')
593+
assignments = schedule.assignments.order_by('session__type__slug','timeslot__time','session__group__acronym')
594594
if type:
595595
assignments = assignments.filter(session__type__slug=type)
596596
return render(request,"meeting/agenda_by_type.html",{"meeting":meeting,"schedule":schedule,"assignments":assignments})

ietf/templates/meeting/agenda_by_type.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ <h3>{{ day.grouper }}</h3>
4444
<tr>
4545
<td>{{ss.timeslot.time|date:"H:i"}}-{{ss.timeslot.end_time|date:"H:i"}}</td>
4646
<td>{{ss.timeslot.get_hidden_location}}</td>
47-
<td class="type-{{ss.session.type.slug}}">{{ss.session.short_name}}</td>
47+
<td class="type-{{ss.session.type.slug}}">{{ss.session.short_name}} </td>
48+
<td>{% if ss.session.type_id == 'session' or ss.session.type_id == 'plenary' or ss.session.type_id == 'other' %} <a href="{% url 'ietf.meeting.views.session_details' num=ss.session.meeting.number acronym=ss.session.group.acronym %}">Materials</a>{% else %}&nbsp;{% endif %}</td>
4849
</tr>
4950
{% endfor %}
5051
</table>

0 commit comments

Comments
 (0)