{#
/**
 * @file
 * Theme override for a views mini-pager.
 *
 * Available variables:
 * - items: List of pager items.
 *
 * @ingroup templates
 *
 * @see template_preprocess_views_mini_pager()
 */
#}
{{ attach_library('socialbase/pagination') }}
{% if items.previous or items.next %}
  <nav role="navigation" aria-labelledby="pagination-heading">
    <h4 class="sr-only" id="pagination-heading">{{ 'Pagination'|t }}</h4>
    <ul class="mini-pager">
      {% if items.previous %}
        <li class="pager__item pager__item--previous">
          <a class="btn btn-flat" href="{{ items.previous.href }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }}>
            <span aria-hidden="true">
              <svg class="icon-small" aria-hidden="true">
                <title>{% trans %} Previous page {% endtrans %}</title>
                <use xlink:href="#icon-navigate_before">  </use>
              </svg>
            </span>
            <span>{{ 'Newer items'|t }} </span>
          </a>
        </li>
      {% endif %}
      {% if items.next %}
        <li class="pager__item pager__item--next">
          <a class="btn btn-flat" href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }}>
            <span>{{ 'Older items'|t }} </span>
            <span aria-hidden="true">
              <svg class="icon-small" aria-hidden="true">
                <use xlink:href="#icon-navigate_next"> </use>
              </svg>
            </span>
          </a>
        </li>
      {% endif %}
    </ul>
  </nav>
{% endif %}
