@@ -386,10 +386,40 @@ <h4>Slides</h4>
386386 {% endif %}
387387 <!-- Video recording -->
388388 {% if schedule.meeting.number|add:"0" > = 80 %}
389- < a class ="btn btn-default btn-xs "
390- href ="http://www.meetecho.com/ietf{{schedule.meeting.number}}/recordings#{{item.session.historic_group.acronym.upper}} "
391- title ="Meetecho video recording "> < span class ="fa fa-file-video-o "> </ span >
392- </ a >
389+ {% with item.session.recordings as recordings %}
390+ {% if recordings %}
391+ <!-- There's no guaranteed order, so this is a bit messy: -->
392+ <!-- First, the audio recordings, if any -->
393+ {% for r in recordings %}
394+ {% if r.href and 'audio' in r.href %}
395+ < a class ="btn btn-default btn-xs " href ="{{ r.href }} " title ="{{ r.title}} ">
396+ < span class ="fa fa-file-audio-o ">
397+ </ a >
398+ {% endif %}
399+ {% endfor %}
400+ <!-- Then the youtube recordings -->
401+ {% for r in recordings %}
402+ {% if r.href and 'youtu' in r.href %}
403+ < a class ="btn btn-default btn-xs " href ="{{ r.href }} " title ="{{ r.title }} ">
404+ < span class ="fa fa-file-video-o "> </ span >
405+ </ a >
406+ {% endif %}
407+ {% endfor %}
408+ <!-- Finally, any other recordings -->
409+ {% for r in recordings %}
410+ {% if r.href and not 'audio' in r.href and not 'youtu' in r.href %}
411+ < a class ="btn btn-default btn-xs " href ="{{ r.href }} " title ="{{ r.title }} ">
412+ < span class ="fa fa-file-o "> </ span >
413+ </ a >
414+ {% endif %}
415+ {% endfor %}
416+ {% else %}
417+ < a class ="btn btn-default btn-xs "
418+ href ="http://www.meetecho.com/ietf{{schedule.meeting.number}}/recordings#{{item.session.historic_group.acronym.upper}} "
419+ title ="Meetecho video recording "> < span class ="fa fa-file-video-o "> </ span >
420+ </ a >
421+ {% endif %}
422+ {% endwith %}
393423 {% endif %}
394424 <!-- Audio recording -->
395425 {# < a class ="btn btn-default btn-xs " href ="" title ="Audio recording "> < span class ="fa fa-file-audio-o "> </ span > </ a > #}
0 commit comments