{% extends "places/base.html" %} {% load i18n %} {% load molly_utils %} {% block pagetitle %}{{ entity_types.0.verbose_name_plural|capfirst }}{% endblock %} {% block title %}{{ entity_types.0.verbose_name_plural|capfirst }}{% endblock %} {% block content %}
{# Defines an H2 title which defines which category this page is showing #}

{% 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 %} {# 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 %} {% ifnotequal entities.paginator.num_pages 1 %}
{% blocktrans with entities.number as page and entities.paginator.num_pages as pages %}Page {{ page }} of {{ pages }}{% endblocktrans %}
{% endifnotequal %}
{% endblock %}