{% load umap_tags i18n %}

{% for map_inst in maps %}
  <hr />
  <div class="col wide">
    {% map_fragment map_inst prefix=prefix page=request.GET.p %}
    <div class="legend">
      <a href="{{ map_inst.get_absolute_url }}">{{ map_inst.name }}</a>
      {% with author=map_inst.get_author %}
        {% if author %}
          <em>{% trans "by" %} <a href="{{ author.get_url }}">{{ author }}</a></em>
        {% endif %}
      {% endwith %}
    </div>
  </div>
{% endfor %}
{% if maps.has_next %}
  <div class="col wide">
    <a href="?{% paginate_querystring maps.next_page_number %}"
       class="button more_button neutral">{% trans "More" %}</a>
  </div>
{% endif %}
