{% macro themes_strip(stats, copy) %} {% set active = stats.theme_activity | selectattr("count_window", "gt", 0) | list %} {% if active | length > 1 %}
{% for t in active %} {{ t.label }}: {{ t.count_window }} update{{ '' if t.count_window == 1 else 's' }}{% if copy.theme_blurbs.get(t.id) %}. {{ copy.theme_blurbs[t.id] }}{% endif %} {% endfor %}
{% endif %} {% endmacro %}