{# @description The row above a list's results: search, the result count, then the controls. One row from md, two on a phone. Renders nothing when the list has no records and nothing is applied. #} {# @prop search:text | description:"The search box. Takes the whole first row on a phone." #} {# @prop summary:text | description:"The line that says what the list holds." #} {# @prop class:text | description:"Extra classes on the toolbar's root element." #} {# @slot Sort, filter — the controls at the end of the row. #} {% load i18n mvp %} {% if result_count or refinements %} {% comment %} One source order at every width: search, count, controls. Below md the search takes the whole first row and the other two share the second. {% endcomment %}
{% if not search|slot_is_empty %}
{{ search }}
{% endif %}
{{ summary }}
{{ slot }}
{% endif %}