{# Copyright The IETF Trust 2015, All Rights Reserved #} {% load origin %} {% load static %} {% load textfilters %} {% origin %} {% with item=session.official_timeslotassignment acronym=session.historic_group.acronym %} {% if session.agenda and show_agenda %} {# Note: if called with show_agenda=True, calling template must load agenda_materials.js, needed by session_agenda_include.html #} {% include "meeting/session_agenda_include.html" with slug=item.slug session=session timeslot=item.timeslot only %} {% endif %} {% if use_codimd %} {% endif %} {# show stream buttons up till end of session, then show archive buttons #} {% if now < item.timeslot.end_time %} {% if session.agenda_note|first_url|conference_url %} {% elif session.remote_instructions|first_url|conference_url %} {% elif item.timeslot.location.webex_url %} {% elif item.timeslot.location.video_stream_url %} {% else %} {% endif %} {% else %} {% with session.recordings as recordings %} {% if recordings %} {# There's no guaranteed order, so this is a bit messy: #} {% for r in recordings %}{% with href=r.get_href %} {% if 'audio' in href %} {% endif %} {% endwith %}{% endfor %} {% for r in recordings %}{% with href=r.get_href %} {% if 'youtu' in href %} {% endif %} {% endwith %}{% endfor %} {% for r in recordings %}{% with href=r.get_href %} {% if not 'audio' in href and not 'youtu' in href %} {% endif %} {% endwith %}{% endfor %} {% elif item.timeslot.location.video_stream_url %} {% elif show_empty %} {% endif %} {% endwith %} {% endif %} {% endwith %}