{% comment %}
Displays the tabs to different event_list pages.
Used by the event_list_tabs() template inclusion tag.
{% endcomment %}
{% load spectator_core %}
{% if counts.all > 0 %}
<{% if not current_kind and page_number == 1 %}span{% else %}a href="{% url 'spectator:events:home' %}"{% endif %} class="nav-link{% if not current_kind %} active{% endif %}">All ({{ counts.all }}){% if not current_kind and page_number == 1 %}{% else %}{% endif %}
{% endif %}
{% for kind in event_kinds %}
{% if counts|get_item:kind > 0 %}
{% with event_kinds_data|get_item:kind as kind_data %}
<{% if current_kind == kind and page_number == 1 %}span{% else %}a href="{% url 'spectator:events:event_list' kind_slug=kind_data|get_item:'slug' %}"{% endif %} class="nav-link{% if current_kind == kind %} active{% endif %}">{{ kind_data|get_item:'name_plural' }} ({{ counts|get_item:kind }}){% if current_kind == kind and page_number == 1 %}{% else %}{% endif %}
{% endwith %}