{% if query.data_sources|length > 0 %}
{% for data_source in query.data_sources %}
{% if sorting_display_type == 'single' %} {% include "core_explore_common_app/user/ordering_menu/single_criteria_sorting_menu.html" with data_source_index=forloop.counter0 %} {% elif sorting_display_type == 'multi' %} {% include "core_explore_common_app/user/ordering_menu/multi_criteria_sorting_menu.html" %} {% endif %} {% include "core_explore_common_app/user/persistent_query/button.html" %} {% if linked_records_app %} {% include 'core_linked_records_app/user/sharing/explore/button.html' %} {% endif %} {% if exporter_app %} {% endif %}
{% endfor %}
{% endif %}