Add links to session materials pages to the rows on the by-type view of the agenda. Commit ready for merge.
- Legacy-Id: 12352
This commit is contained in:
parent
6ed7fed3d2
commit
ba60c115fa
|
@ -590,7 +590,7 @@ def agenda_by_type(request, num=None, type=None, name=None, owner=None):
|
|||
else:
|
||||
person = get_person_by_email(owner)
|
||||
schedule = get_schedule_by_name(meeting, person, name)
|
||||
assignments = schedule.assignments.order_by('session__type__slug','timeslot__time')
|
||||
assignments = schedule.assignments.order_by('session__type__slug','timeslot__time','session__group__acronym')
|
||||
if type:
|
||||
assignments = assignments.filter(session__type__slug=type)
|
||||
return render(request,"meeting/agenda_by_type.html",{"meeting":meeting,"schedule":schedule,"assignments":assignments})
|
||||
|
|
|
@ -44,7 +44,8 @@ li.daylistentry { margin-left:2em; font-weight: 400; }
|
|||
<tr>
|
||||
<td>{{ss.timeslot.time|date:"H:i"}}-{{ss.timeslot.end_time|date:"H:i"}}</td>
|
||||
<td>{{ss.timeslot.get_hidden_location}}</td>
|
||||
<td class="type-{{ss.session.type.slug}}">{{ss.session.short_name}}</td>
|
||||
<td class="type-{{ss.session.type.slug}}">{{ss.session.short_name}} </td>
|
||||
<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 %} {% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue