{% extends "sentry/bases/explore.html" %}

{% load url from future %}
{% load i18n %}
{% load sentry_helpers %}

{% block inner %}
    {% if tag_list %}
        {% for tag_key, tag_values in tag_list %}
            {% if not forloop.counter|divisibleby:2 %}
                {% if not forloop.first %}
                    </div>
                {% endif %}
                <div class="row-fluid">
            {% endif %}
            <div class="span6">
                <div class="page-header">
                    <span class="pull-right"><a href="{{ tag_key.get_absolute_url }}">More Details</a></span>

                    <h4>{{ tag_key.get_label }} <small>({{ tag_key.values_seen|small_count }})</small></h4>
                </div>

                <ul class="tag-list">
                    {% for tag_value in tag_values %}
                        <li>
                            <a href="{{ tag_value.get_absolute_url }}">
                                {{ tag_value.get_label }}
                                <span>{{ tag_value.times_seen|small_count }}</span>
                            </a>
                        </li>
                    {% endfor %}
                </ul>
            </div>
            {% if forloop.last %}
                </div>
            {% endif %}
        {% endfor %}
    {% else %}
        <p>{% trans "There don't seem to be any tags in the system yet. For more information on how you can tag data, check your client's documentation." %}</p>

    {% endif %}

{% endblock %}
