]> git.parisson.com Git - mezzo.git/commitdiff
Add excluded tag filter
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 10 Oct 2016 14:57:26 +0000 (16:57 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 10 Oct 2016 14:57:26 +0000 (16:57 +0200)
app/templates/agenda/event_list.html
lib/mezzanine-agenda

index 907fb3b3215d1f85f37fcabdf07920b2875b8963..d0c1035bb1e3e44f62900b8bc9baf04e3f199af9 100644 (file)
                         {% keywords_for mezzanine_agenda.event as tags %}
                         {% all_events as all_events %}
                         {% if tags %}
-                            <a href="{% url 'event_list' %}" class="button{% if not tag %} button--black{% else %} button--white{% endif %}">{% trans "All events" %} ({{ all_events.count }})</a>
+                            <a href="{% url 'event_list' %}" class="button{% if not tag %} button--black{% else %} button--white{% endif %}">{% trans "All events" %}</a>
                             {% for t in tags %}
-                                <a href="{% url "event_list_tag" t.slug %}" class="button{% if tag == t %} button--black{% else %} button--white{% endif %}">
-                                    {{ t }} ({{ t.item_count }})
+                                <a href="{% url "event_list_tag" t.slug %}" class="button{% if tag == t %} button--black{% else %} button--white{% endif %}{% if t|tag_is_excluded %} button--excluded{% endif %}">
+                                    {{ t }}
                                 </a>
                             {% endfor %}
                         {% endif %}
index 455a8b03e4f4b64ebe67d0e6d0038160d7b27e41..310ee7e277ae066ed7a90ab6310dfbdc52eca0f6 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 455a8b03e4f4b64ebe67d0e6d0038160d7b27e41
+Subproject commit 310ee7e277ae066ed7a90ab6310dfbdc52eca0f6