- {% keywords_for mezzanine_agenda.event as tags %}
- {# {% all_events as all_events %}#}
- {% if tags %}
- {% comment %}
- <a href="{% url 'event_list' %}" class="button{% if not tag %} button--black{% else %} button--white{% endif %}">{% trans "All events" %}</a>
- {% endcomment %}
- {% for t in tags %}
- {% if not t|tag_is_excluded %}
- <li class="nav-tree__item">
- <a class="nav-tree__link--filter nav-tree__link{% if tag == t %} active{% endif %}" href="{% if tag == t %}{% url 'event_list' %}{% else %}{% url "event_list_tag" t.slug %}{% endif %}">
- {{ t }} {% if tag == t %}<i class="fa fa-times"></i>{% endif %}
- </a>
- </li>
- {% endif %}
- {% endfor %}
+ {% if tag and not tag|tag_is_excluded or not tag %}
+
+ {% keywords_for mezzanine_agenda.event as tags %}
+ {# {% all_events as all_events %}#}
+ {% if tags %}
+ {% comment %}
+ <a href="{% url 'event_list' %}" class="button{% if not tag %} button--black{% else %} button--white{% endif %}">{% trans "All events" %}</a>
+ {% endcomment %}
+ {% for t in tags %}
+ {% if not t|tag_is_excluded %}
+ <li class="nav-tree__item">
+ <a class="nav-tree__link--filter nav-tree__link{% if tag == t %} active{% endif %}" href="{% if tag == t %}{% url 'event_list' %}{% else %}{% url "event_list_tag" t.slug %}{% endif %}">
+ {{ t }} {% if tag == t %}<i class="fa fa-times"></i>{% endif %}