{% extends "places/base.html" %}{% load molly_maps %}{% load molly_utils %}{% load i18n %} {% block extrahead %}{{ block.super }}{% if entity %} {% endif %}{% endblock %} {% block content %}

{% if entity %} {% blocktrans with entity_types.0.verbose_name as name and entity_types.0.verbose_name_plural as name_plural and entity.title as title count count as count %}Found {{ count }} {{ name }} near {{ title }}{% plural %}Found {{ count }} {{ name_plural }} near {{ title }}{% endblocktrans %} {% else %} {% blocktrans with entity_types.0.verbose_name as name and entity_types.0.verbose_name_plural as name_plural count count as count %}Found {{ count }} {{ name }}{% plural %}Found {{ count }} {{ name_plural }}{% endblocktrans %} {% endif %} {# Also show other categories if this is an 'and' search #} {% ifnotequal entity_types|length 1 %} {% blocktrans count count as count %}that is also{% plural %}that are also{% endblocktrans %} {% for et in entity_types|slice:"1:" %} {% if not forloop.first %}, {% if forloop.last %}{% trans "and" %} {% endif %} {% endif %} {{ et.verbose_name_singular }} {% endfor %} {% endifnotequal %}

{% if not found_entity_types|length_is:0 and not found_entity_types|length_is:1 %}
{% trans "Limit to:" %} {% for et in found_entity_types %} {% if entity %} {{ et.verbose_name_plural }} {% else %} {{ et.verbose_name_plural }} {% endif %} {% if not forloop.last %} | {% endif %} {% endfor %}
{% endif %} {% if entity_type.note %}
{{ entity_type.note }}
{% endif %} {% render_map map %}
{% endblock %}