{% extends 'base.html' %} {% block title %}{{ cat.title }} - EventNest{% endblock %} {% block content %}
← All Categories

{{ cat.title }}

{% if cat.description %}

{{ cat.description }}

{% endif %}

{{ total_events }} event{{ total_events|pluralize }} {% if subcategories %}across {{ cat.title }} and its sub-categories{% endif %}

{% if subcategories %}
All {{ cat.title }} {% for sub in subcategories %} {{ sub.title }} {% endfor %}
{% endif %} {% if events %}
{% for event in events %}
{% with banner=event.get_banner %} {% if banner %}
{% else %}
{{ event.title|first|upper }}
{% endif %} {% endwith %}
{{ event.event_type|title }} {% if event.is_free %}Free{% endif %}

{{ event.title|truncatechars:55 }}

📅 {{ event.start_date|date:"M d, Y" }} {% if event.city %}• 📍 {{ event.city }}{% endif %}
{% if subcategories and event.category and event.category != cat %}
🏷 {{ event.category.title }}
{% endif %} {% with tags=event.tags.all %} {% if tags %}
{% for tag in tags|slice:":3" %} {{ tag.name }} {% endfor %}
{% endif %} {% endwith %}
{% endfor %}
{% if page_obj.has_other_pages %}
{% if page_obj.has_previous %} ← Previous {% endif %} Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }} {% if page_obj.has_next %} Next → {% endif %}
{% endif %} {% else %}
📅

No events in this category yet.

Browse all events
{% endif %} {% endblock %}