Skip to content

Commit 39aa3eb

Browse files
committed
Adding slides to agenda page
- Legacy-Id: 4746
1 parent 9c6cd18 commit 39aa3eb

4 files changed

Lines changed: 21 additions & 2 deletions

File tree

ietf/templates/meeting/agenda.html

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{% extends "base.html" %}
2+
{% load ietf_filters %}
23
{# Copyright The IETF Trust 2007, All Rights Reserved #}
34
{% load humanize %}
45
{% block title %}IETF {{ meeting.number }} Meeting Agenda{% endblock %}
@@ -332,13 +333,22 @@ <h2 class="ietf-divider">{{ slot.time|date:"l"|upper }}, {{ slot.time|date:"F j,
332333
<td colspan="5">
333334
{% if slot.session.agenda %}
334335
{% if slot.session.agenda.file_extension in show_inline%}
335-
<iframe width="100%" height="1px" src="about:blank" xsrc="/meeting/{{ meeting.number }}/agenda/{{ slot.session.group.acronym }}/" onload="r(this)"></iframe>
336+
<iframe width="100%" height="1px" src="about:blank" xsrc="{{slot.session.agenda.href}}" onload="r(this)"></iframe>
336337
{% else %}
337338
<b><i>Agenda submitted in {{slot.session.agenda.file_extension|upper}} format</i></b>
338339
{% endif %}
339340
{% else %}
340341
<b><i>No Agenda Submitted</i></b>
341342
{% endif %}
343+
{% if slot.session.slides %}
344+
<h3>Slides:</h3>
345+
<ol>{% for slide in slot.session.slides %}
346+
<li>
347+
<img src="/images/{{slide.file_extension|upper}}_icon.png">
348+
<a href="{{ slide.href }}">{{ slide.title|clean_whitespace }}</a>
349+
</li>
350+
{% endfor %}</ol>
351+
{% endif %}
342352
</td>
343353
</tr>
344354

@@ -347,7 +357,16 @@ <h2 class="ietf-divider">{{ slot.time|date:"l"|upper }}, {{ slot.time|date:"F j,
347357
<tr>
348358
<td></td>
349359
<td colspan="5">
350-
<iframe width="100%" height="1px" src="/meeting/{{ meeting.number }}/agenda/{{ slot.session.group.acronym }}/" onload="r(this)"></iframe>
360+
<iframe width="100%" height="1px" src="{{slot.session.agenda.href}}" onload="r(this)"></iframe>
361+
{% if slot.session.slides %}
362+
<h3>Slides:</h3>
363+
<ol>{% for slide in slot.session.slides %}
364+
<li>
365+
<img src="/images/{{slide.file_extension|upper}}_icon.png">
366+
<a href="{{ slide.href }}">{{ slide.title|clean_whitespace }}</a>
367+
</li>
368+
{% endfor %}</ol>
369+
{% endif %}
351370
</td>
352371
</tr>
353372
{% endif %}

static/images/PDF_icon.png

1.3 KB
Loading

static/images/PPTX_icon.png

1009 Bytes
Loading

static/images/PPT_icon.png

1009 Bytes
Loading

0 commit comments

Comments
 (0)