{% extends "umap/content.html" %} {% load i18n %} {% block head_title %} {% translate "Explore maps" %} - {{ SITE_DESCRIPTION }} {% endblock head_title %} {% block messages %} {# We don't want maps from the results list to display errors in the main page. #} {% endblock messages %} {% block maincontent %} {% include "umap/search_bar.html" %}
{% if request.GET.q %} {% if maps %}

{% blocktranslate trimmed count counter=count %} {{ count }} map found: {% plural %} {{ count }} maps found: {% endblocktranslate %}

{% include "umap/map_list.html" with prefix="search_map" %}
{% else %}

{% trans "No map found." %}

{% endif %} {% else %}

{% if request.GET.tags %} {% trans "Latest created maps in category" %} {% for value, label in UMAP_TAGS %} {% if request.GET.tags == value %} {{ label }}: {% endif %} {% endfor %} {% else %} {% trans "Latest created maps" %} {% endif %}

{% include "umap/map_list.html" with prefix="search_map" %}
{% endif %}
{% endblock maincontent %}