{% extends "badger/base.html" %}

{% block pageid %}badges{% endblock %}

{% block subcontent %}

    <h1>
    {% if tag_name %}
        {% trans %}Badges tagged <a href="" class="tag">{{tag_name}}</a>{% endtrans %}
    {% elif query_string %}
        {{ _('Badges matching "{query_string}"') | f(query_string=query_string) }}
    {% else %}
        {{ _("All Badges") }}
    {% endif %}
    </h1>

    {% include "badger/includes/badges_list.html" %}
    {% if award_list %}
        <h2>{{ _('Recent awards for these badges') }}</h2>
        {% set award_list = award_list[:12] %}
        {% set hide_pagination = True %}
        {% include "badger/includes/awards_list.html" %}
    {% endif %}
{% endblock %}
