{% extends "_base.html" %} {% load i18n %} {% load rules %} {% load static %} {% load sort_tags %} {% load content_filters %} {% block content %} {% get_current_language as LANGUAGE_CODE %} {% get_language LANGUAGE_CODE as backend_language %}

{% if not is_archive %} {% translate "Places" %} {% else %} {% translate "Archived places" %} {% endif %}

{% if not is_archive %} {% translate "Archived places" %} ({{ archived_count }}) {% else %} {% translate "Back to places" %} {% endif %}
{% include "generic_language_switcher.html" with target="places" %} {% include "search_input_form.html" with object_type="place" %}
{% if not is_archive %} {% if request.region.default_language == language and perms.cms.change_place %} {% translate "Create place" %} {% elif perms.cms.change_place %} {% blocktranslate trimmed asvar disabled_button_title with request.region.default_language.translated_name as default_language %} You can only create places in the default language ({{ default_language }}). {% endblocktranslate %} {% endif %} {% endif %}
{% csrf_token %}
{% translate "Publication status" as publication_status_label %} {% translate "Street" as street_label %} {% translate "Postal Code" as postcode_label %} {% translate "City" as city_label %} {% translate "Country" as country_label %} {% translate "Category" as category_label %} {% if backend_language and backend_language != language %} {% endif %} {% for place in places %} {% get_translation place language.slug as place_translation %} {% include "places/place_list_row.html" with place=place place_translation=place_translation %} {% empty %} {% endfor %}
{% if perms.cms.change_place %} {% endif %} {% sort_link title_label "_sort_title" %} {% translate "Title in" %} {{ backend_language.translated_name }}
{% spaceless %} {% for lang in languages %} {% if lang != request.region.default_language %} {% endif %} {% endfor %} {% endspaceless %}
{% sort_link publication_status_label "_sort_status" %} {% sort_link street_label "address" %} {% sort_link postcode_label "postcode" %} {% sort_link city_label "city" %} {% sort_link country_label "country" %} {% sort_link category_label "_sort_category_name" %} {% translate "Options" %}
{% if search_query %} {% if not is_archive %} {% translate "No places found with these filters." %} {% else %} {% translate "No archived places found with these filters." %} {% endif %} {% else %} {% if not is_archive %} {% translate "No places available yet." %} {% else %} {% translate "No archived places available yet." %} {% endif %} {% endif %}
{% if places and perms.cms.change_place %}
0 {% translate "Places selected" %}
{% endif %} {% if perms.cms.change_place %}
{% endif %}
{% include "../generic_confirmation_dialog.html" %} {% include "../_machine_translation_overlay.html" %} {% url "places" as url %} {% include "pagination.html" with chunk=places %} {% endblock content %}