{% load i18n apphooks_config_tags %}

<ul>
    <li{% if not dashboards_app_category %} class="active"{% endif %}>
        <a href="{% namespace_url "dashboard-list" namespace=instance.app_config.namespace default='' %}">{% trans "All" %}</a>
    </li>
    {% for category in categories %}
        <li{% if dashboards_app_category.id == category.id %} class="active"{% endif %}>
            <a href="{% namespace_url "dashboard-list-by-category" category.slug namespace=instance.app_config.namespace default='' %}">{{ category.name }}</a>
            <span>{{ category.dashboard_count }}</span>
        </li>
    {% endfor %}
</ul>
