From bd8638e6df5589637168fcf9fbc0cfcb06adcf86 Mon Sep 17 00:00:00 2001
From: Jennifer Richards <jennifer@painless-security.com>
Date: Thu, 10 Mar 2022 15:21:26 -0400
Subject: [PATCH] feat: shorten long agenda filter button labels (#3602)

Sessions with long names lead to poor rendering of the agenda filter buttons
on the 'customize the agenda view' page. This truncates those labels at 3 words.
---
 ietf/templates/meeting/agenda_filter.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ietf/templates/meeting/agenda_filter.html b/ietf/templates/meeting/agenda_filter.html
index 8c06aedd4..16a1d8a63 100644
--- a/ietf/templates/meeting/agenda_filter.html
+++ b/ietf/templates/meeting/agenda_filter.html
@@ -69,9 +69,9 @@ Optional parameters:
                                                                     {% if button.toggled_by %}data-filter-keywords="{{ button.toggled_by|join:"," }}"{% endif %}
                                                                     data-filter-item="{{ button.keyword }}">
                                                                 {% if button.is_bof %}
-                                                                    <i>{{ button.label }}</i>
+                                                                    <i>{{ button.label|truncatewords:"3" }}</i>
                                                                 {% else %}
-                                                                    {{ button.label }}
+                                                                    {{ button.label|truncatewords:"3" }}
                                                                 {% endif %}
                                                             </button>
                                                         </div>