{% extends 'pinboard/base.html' %}

{% block breadcrumbs %}
    <li><a href="{% url 'ditto:home' %}">Home</a></li>
    <li><a href="{% url 'pinboard:home' %}">Pinboard</a></li>
    <li class="active">Tags</li>
{% endblock %}

{% block content %}

    <h1 class="m-y-2">
        {% block title %}
            The most common Pinboard tags
        {% endblock %}
    </h1>

    {% if tag_list|length == 0 %}
        <p>There are no tags in use.</p>
    {% else %}
        {% load l10n %}
        <ol>
            {% for tag in tag_list %}
                <li>
                    <a href="{% url 'pinboard:tag_detail' slug=tag.slug %}">
                        {{ tag.name }}
                    </a>
                    <small>({{ tag.num_times|localize }})</small>
                </li>
            {% endfor %}
        </ol>
    {% endif %}

{% endblock content %}

