{# Copyright The IETF Trust 2015, All Rights Reserved #} {% load origin %} {% load staticfiles %} {% load textfilters %} {% origin %} {% if session.agenda and show_agenda %} {% include "meeting/session_agenda_include.html" %} {% endif %} {% if item.timeslot.type.slug == 'plenary' %} {% else %} {% endif %} {# show stream buttons up till end of session, then show archive buttons #} {% if now < item.timeslot.end_time %} {% if "webex.com/" in session.agenda_note|first_url %} {% elif session.remote_instructions|first_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 %}