Selectively removed the agenda and minutes warnings from the meeting materials page, for educational sessions where agenda and minutes aren't expected. Fixes issue #1115.

- Legacy-Id: 6078
This commit is contained in:
Henrik Levkowetz 2013-08-28 11:00:38 +00:00
parent 37e69a02c6
commit 84a07d7151
2 changed files with 6 additions and 2 deletions

View file

@ -15,8 +15,8 @@
</b>
</td>
<td>
{% if session.agenda %}<a href="http://www.ietf.org/proceedings/{{meeting_num}}/agenda/{{ session.agenda }}">Agenda</a>{% else %}<span style="background:#ff8888;padding:0 2px;">No agenda received</span> {% endif %}<br/>
{% if session.minutes %}<a href="http://www.ietf.org/proceedings/{{ meeting_num }}/minutes/{{ session.minutes }}">Minutes</a>{% else %}No minutes received{% endif %}<br/>
{% if session.agenda %}<a href="http://www.ietf.org/proceedings/{{meeting_num}}/agenda/{{ session.agenda }}">Agenda</a>{% else %}{% if show_agenda == "True" %}<span style="background:#ff8888;padding:0 2px;">No agenda received</span> {% endif %}{% endif %}<br/>
{% if session.minutes %}<a href="http://www.ietf.org/proceedings/{{ meeting_num }}/minutes/{{ session.minutes }}">Minutes</a>{% else %}{% if show_agenda == "True" %}No minutes received{% endif %}{% endif %}<br/>
{% for slide in session.slides %}
<a href="http://www.ietf.org/proceedings/{{meeting_num}}/slides/{{ slide.external_url }}">{{ slide.title|clean_whitespace }}</a><br/>
{% endfor %}

View file

@ -50,6 +50,7 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}</p>
{% load cache %}
{% cache 900 ietf_meeting_materials meeting_num cache_version %}
{% with "True" as show_agenda %}
<!-- Plenaries -->
{% if plenaries %}
<a name="plenaries"></a>
@ -73,6 +74,7 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}</p>
<!-- Training Sessions -->
{% if training %}
{% with "False" as show_agenda %}
<a name="training"></a>
<h2 class="ietf-divider">Training</h2>
{% for session in training %}
@ -80,6 +82,7 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}</p>
{% include "meeting/group_materials.html" %}
{% endifchanged %}
{% endfor %}
{% endwith %}
{% endif %}
<!-- End of Training Sessions -->
@ -106,6 +109,7 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}</p>
{% endfor %}
{% endif %}
<!-- End of IRTF Sessions -->
{% endwith %}
{% endcache %}