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.
This commit is contained in:
Jennifer Richards 2022-03-10 15:21:26 -04:00 committed by GitHub
parent 2493fd063d
commit bd8638e6df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>