Skip to content

Commit d7ec9e7

Browse files
committed
Disable various download buttons if there is no agenda yet.
- Legacy-Id: 19911
1 parent 7a86a1c commit d7ec9e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ietf/templates/meeting/agenda.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ <h2>
4646
{% include 'meeting/tz-display.html' with id_suffix="" timezone=timezone %}
4747
{% include "meeting/agenda_filter.html" with filter_categories=filter_categories customize_button_text="Personalize the agenda view..." always_show=personalize %}
4848
{% include "meeting/agenda_personalize_buttonlist.html" with meeting=schedule.meeting only %}
49-
<div class="input-group input-group-sm mb-3">
49+
<div class="input-group mb-3">
5050
<button class="btn btn-outline-primary dropdown-toggle"
5151
type="button"
5252
data-bs-toggle="dropdown"
53-
aria-expanded="false">
53+
aria-expanded="false"
54+
{% if filter_categories|length < 3 %}disabled{% endif %}>
5455
Download area agenda
5556
</button>
5657
<ul class="dropdown-menu">
@@ -68,7 +69,7 @@ <h2>
6869
{% endif %}
6970
{% endfor %}
7071
</ul>
71-
<a class="btn btn-outline-primary"
72+
<a class="btn btn-outline-primary {% if non_area_keywords|length == 0 %}disabled{% endif %}"
7273
href="{% url "ietf.meeting.views.agenda_ical" num=schedule.meeting.number %}?show={{ non_area_keywords|join:',' }}">
7374
Download non-area events
7475
</a>

0 commit comments

Comments
 (0)