Mercurial > hg > isophonics-drupal-site
view core/themes/stable/templates/views/views-mini-pager.html.twig @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
{# /** * @file * Theme override for a views mini-pager. * * Available variables: * - items: List of pager items. * * @see template_preprocess_views_mini_pager() */ #} {% if items.previous or items.next %} <nav role="navigation" aria-labelledby="pagination-heading"> <h4 class="visually-hidden">{{ 'Pagination'|t }}</h4> <ul class="js-pager__items"> {% if items.previous %} <li> <a href="{{ items.previous.href }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }}> <span class="visually-hidden">{{ 'Previous page'|t }}</span> <span aria-hidden="true">{{ items.previous.text|default('‹‹'|t) }}</span> </a> </li> {% endif %} {% if items.current %} <li> {% trans %} Page {{ items.current }} {% endtrans %} </li> {% endif %} {% if items.next %} <li> <a href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }}> <span class="visually-hidden">{{ 'Next page'|t }}</span> <span aria-hidden="true">{{ items.next.text|default('››'|t) }}</span> </a> </li> {% endif %} </ul> </nav> {% endif %}