@@ -227,14 +227,21 @@ <h2>
227227 < span class ="label label-danger pull-right "> CANCELLED</ span >
228228 {% endif %}
229229
230+ {% if item.session.agenda %}
231+ {% include "meeting/session_agenda_include.html" %}
232+ {% endif %}
230233 </ td >
231234 < td class ="col-md-2 ">
232235 < span class ="hidden-xs ">
233- {% if item.timeslot.type.slug == 'other' and not item.session.agenda %}
234- {% for slide in item.session.slides %}
235- < a href ="{{slide.href}} "> {{ slide.title|clean_whitespace }}</ a >
236- < br >
237- {% endfor %}
236+ {% if item.timeslot.type.slug == 'other' %}
237+ {% if item.session.agenda %}
238+ {% include "meeting/session_buttons_include.html" %}
239+ {% else %}
240+ {% for slide in item.session.slides %}
241+ < a href ="{{slide.href}} "> {{ slide.title|clean_whitespace }}</ a >
242+ < br >
243+ {% endfor %}
244+ {% endif %}
238245 {% endif %}
239246 </ span >
240247 </ td >
@@ -317,142 +324,12 @@ <h2>
317324 < br > < span class ="text-danger "> {{item.session.agenda_note}}</ span >
318325 {% endif %}
319326
320- < div class ="modal fade " id ="modal-{{ item.slug }} " tabindex ="-1 " role ="dialog " aria-labelledby ="label-{{ item.slug }} " aria-hidden ="true ">
321- < div class ="modal-dialog modal-lg ">
322- < div class ="modal-content ">
323- < div class ="modal-header ">
324- < button type ="button " class ="close " data-dismiss ="modal " aria-hidden ="true "> ×</ button >
325- < h4 class ="modal-title " id ="label-{{item.slug}} ">
326- Meeting materials for
327- {% if item.timeslot.type.slug == 'plenary' %}{{item.timeslot.name}}{% else %}{{item.session.historic_group.name}}{% endif %}
328-
329- </ h4 >
330- </ div >
331- < div class ="modal-body ">
332- {% with item.session.agenda as agenda %}
333- {% if agenda %}
334- {% if agenda.file_extension == "txt" or agenda.file_extension == "html" or agenda.file_extension == "htm" %}
335- < h4 > Agenda</ h4 >
336- < div class ="frame " data-src ="{{agenda.href}} "> </ div >
337- {% else %}
338- < span class ="label label-info "> Agenda submitted as {{agenda.file_extension|upper}}</ span >
339- {% endif %}
340- {% else %}
341- < span class ="label label-warning "> No agenda submitted</ span >
342- {% endif %}
343- {% endwith %}
344-
345- {% if item.session.slides %}
346- < h4 > Slides</ h4 >
347- < ul class ="fa-ul list-unstyled ">
348- {% for slide in item.session.slides %}
349- < li >
350- < span class ="fa-li fa fa-file-{{slide.file_extension|lower}}-o "> </ span >
351- < a href ="{{ slide.href }} "> {{ slide.title|clean_whitespace }}</ a >
352- </ li >
353- {% endfor %}
354- </ ul >
355- {% endif %}
356- </ div >
357- < div class ="modal-footer ">
358- < button type ="button " class ="btn btn-default " data-dismiss ="modal "> Close</ button >
359- </ div >
360- </ div >
361- </ div >
362- </ div >
327+ {% include "meeting/session_agenda_include.html" %}
328+
363329 </ td >
364330 < td class ="text-nowrap text-right ">
365331 < span class ="hidden-xs ">
366- {% if item.session.agenda %}
367- < button class ="btn btn-default btn-xs " data-toggle ="modal " data-target ="#modal-{{item.slug}} " title ="Show meeting materials "> < span class ="fa fa-arrows-alt "> </ span > </ button >
368- < a class ="btn btn-default btn-xs " href ="/meeting/{{schedule.meeting.number}}/agenda/{{item.session.historic_group.acronym}}-drafts.tgz " title ="Download meeting materials as .tar archive "> < span class ="fa fa-file-archive-o "> </ span > </ a >
369- < a class ="btn btn-default btn-xs " href ="/meeting/{{ schedule.meeting.number }}/agenda/{{item.session.historic_group.acronym}}-drafts.pdf " title ="Download meeting materials as PDF file "> < span class ="fa fa-file-pdf-o "> </ span > </ a >
370- {% endif %}
371- {% if item.timeslot.type.slug == 'plenary' %}
372- < a class ="btn btn-default btn-xs " href ="http://etherpad.tools.ietf.org/p/notes-ietf-{{ schedule.meeting.number }}-plenary?useMonospaceFont=true " title ="Etherpad for note-takers "> < span class ="fa fa-edit "> </ span > </ a >
373- {% else %}
374- < a class ="btn btn-default btn-xs " href ="http://etherpad.tools.ietf.org/p/notes-ietf-{{ schedule.meeting.number }}-{{item.session.historic_group.acronym}}?useMonospaceFont=true " title ="Etherpad for note-takers "> < span class ="fa fa-edit "> </ span > </ a >
375- {% endif %}
376- {# show stream buttons up till end of session, then show archive buttons #}
377- {% if now < item .timeslot.end_time %}
378- <!-- Jabber -->
379- {% if item.timeslot.type.slug == 'plenary ' %}
380- < a class ="btn btn-default btn-xs "
381- href ="xmpp:plenary@jabber.ietf.org?join "
382- title ="Jabber room for {{item.timeslot.name}} "> < span class ="fa fa-lightbulb-o "> </ span >
383- </ a >
384- {% else %}
385- < a class ="btn btn-default btn-xs "
386- href ="xmpp:{{item.session.historic_group.acronym}}@jabber.ietf.org?join "
387- title ="Jabber room for {{item.session.historic_group.acronym}} "> < span class ="fa fa-lightbulb-o "> </ span >
388- </ a >
389- {% endif %}
390-
391- <!-- Video stream (meetecho) -->
392- {% if item.timeslot.location.video_stream_url %}
393- < a class ="btn btn-default btn-xs "
394- href ="{{ item.timeslot.location.video_stream_url|format:item.session }} "
395- title ="Meetecho video stream "> < span class ="fa fa-video-camera "> </ span >
396- </ a >
397- {% endif %}
398- <!-- Audio stream -->
399- {% if item.timeslot.location.audio_stream_url %}
400- < a class ="btn btn-default btn-xs "
401- href ="{{item.timeslot.location.audio_stream_url|format:item.session }} "
402- title ="Audio stream "> < span class ="glyphicon glyphicon-headphones "> </ span >
403- </ a >
404- {% endif %}
405- {% else %}
406- <!-- Jabber logs -->
407- {% if schedule.meeting.number|add:"0" > = 60 %}
408- < a class ="btn btn-default btn-xs "
409- href ="https://www.ietf.org/jabber/logs/{{item.session.historic_group.acronym}} "
410- title ="Jabber logs for {{item.session.historic_group.acronym}} ">
411- < span class ="fa fa-stack ">
412- < i class ="fa fa-file-o fa-stack-1x "> </ i >
413- < i class ="fa fa-lightbulb-o fa-stack-1x "> </ i >
414- </ span >
415- </ a >
416- {% endif %}
417- <!-- Video recording -->
418- {% if schedule.meeting.number|add:"0" > = 80 %}
419- {% with item.session.recordings as recordings %}
420- {% if recordings %}
421- <!-- There's no guaranteed order, so this is a bit messy: -->
422- <!-- First, the audio recordings, if any -->
423- {% for r in recordings %}
424- {% if r.href and 'audio' in r.href %}
425- < a class ="btn btn-default btn-xs " href ="{{ r.href }} " title ="{{ r.title}} ">
426- < span class ="fa fa-file-audio-o "> </ span >
427- </ a >
428- {% endif %}
429- {% endfor %}
430- <!-- Then the youtube recordings -->
431- {% for r in recordings %}
432- {% if r.href and 'youtu' in r.href %}
433- < a class ="btn btn-default btn-xs " href ="{{ r.href }} " title ="{{ r.title }} ">
434- < span class ="fa fa-file-video-o "> </ span >
435- </ a >
436- {% endif %}
437- {% endfor %}
438- <!-- Finally, any other recordings -->
439- {% for r in recordings %}
440- {% if r.href and not 'audio' in r.href and not 'youtu' in r.href %}
441- < a class ="btn btn-default btn-xs " href ="{{ r.href }} " title ="{{ r.title }} ">
442- < span class ="fa fa-file-o "> </ span >
443- </ a >
444- {% endif %}
445- {% endfor %}
446- {% endif %}
447- < a class ="btn btn-default btn-xs "
448- href ="http://www.meetecho.com/ietf{{schedule.meeting.number}}/recordings#{{item.session.historic_group.acronym.upper}} "
449- title ="Meetecho session recording "> < img src ="{% static 'ietf/images/meetecho-icon.svg' %} " alt ="Meetecho Stream " width ="12px ">
450- </ a >
451- {% endwith %}
452- {% endif %}
453- <!-- Audio recording -->
454- {# < a class ="btn btn-default btn-xs " href ="" title ="Audio recording "> < span class ="fa fa-file-audio-o "> </ span > </ a > #}
455- {% endif %}
332+ {% include "meeting/session_buttons_include.html" %}
456333 </ span >
457334 </ td >
458335 </ tr >
0 commit comments