diff --git a/ietf/templates/meeting/group_materials.html b/ietf/templates/meeting/group_materials.html
index f42565528..91697dc5c 100644
--- a/ietf/templates/meeting/group_materials.html
+++ b/ietf/templates/meeting/group_materials.html
@@ -15,8 +15,8 @@
- {% if session.agenda %}Agenda{% else %}No agenda received {% endif %}
- {% if session.minutes %}Minutes{% else %}No minutes received{% endif %}
+ {% if session.agenda %}Agenda{% else %}{% if show_agenda == "True" %}No agenda received {% endif %}{% endif %}
+ {% if session.minutes %}Minutes{% else %}{% if show_agenda == "True" %}No minutes received{% endif %}{% endif %}
{% for slide in session.slides %}
{{ slide.title|clean_whitespace }}
{% endfor %}
diff --git a/ietf/templates/meeting/materials.html b/ietf/templates/meeting/materials.html
index 79ca6f23d..14693a80e 100644
--- a/ietf/templates/meeting/materials.html
+++ b/ietf/templates/meeting/materials.html
@@ -50,6 +50,7 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}
{% load cache %}
{% cache 900 ietf_meeting_materials meeting_num cache_version %}
+{% with "True" as show_agenda %}
{% if plenaries %}
@@ -73,6 +74,7 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}
{% if training %}
+ {% with "False" as show_agenda %}
Training
{% for session in training %}
@@ -80,6 +82,7 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}
{% include "meeting/group_materials.html" %}
{% endifchanged %}
{% endfor %}
+ {% endwith %}
{% endif %}
@@ -106,6 +109,7 @@ Corrections to submissions cutoff date: {{ cor_cut_off_date|date:"F j, Y" }}
{% endfor %}
{% endif %}
+{% endwith %}
{% endcache %}
|