{% extends "wagtailadmin/generic/listing.html" %}
{% load i18n wagtailadmin_tags %}
{% block main_header %}
{% fragment as base_actions %}
{% block base_actions %}
{% if locale %}
{% include 'wagtailadmin/shared/locale_selector.html' with theme="large" %}
{% endif %}
{% endblock %}
{% endfragment %}
{% fragment as extra_actions %}
{% block extra_actions %}
{% if view.list_export %}
{% include view.export_buttons_template_name %}
{% endif %}
{% endblock %}
{% endfragment %}
{% if not breadcrumbs_items %}
{% include "wagtailadmin/shared/header.html" with title=page_title subtitle=page_subtitle action_url=header_action_url action_text=header_action_label action_icon=header_action_icon base_actions=base_actions extra_actions=extra_actions icon=header_icon search_url=search_url search_form=search_form search_results_url=index_results_url only %}
{% endif %}
{% endblock %}
{% block above_listing %}
{% if breadcrumbs_items and locale %}
{# TODO: temporarily put the locale selector here since we no longer use the legacy header #}
{% include 'wagtailadmin/shared/locale_selector.html' with theme="large" %}
{% endif %}
{% endblock %}