You are here

views-mini-pager.html.twig in Express 8

Theme override for a views mini-pager.

Available variables:

  • items: List of pager items.

File

themes/contrib/bootstrap/templates/views/views-mini-pager.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a views mini-pager.
  5. *
  6. * Available variables:
  7. * - items: List of pager items.
  8. *
  9. * @ingroup templates
  10. *
  11. * @see template_preprocess_views_mini_pager()
  12. */
  13. #}
  14. {% if items.previous or items.next %}
  15. <nav role="navigation" aria-labelledby="pagination-heading">
  16. <h4 class="sr-only">{{ 'Pagination'|t }}</h4>
  17. <ul class="pager js-pager__items">
  18. {% if items.previous %}
  19. <li class="previous">
  20. <a href="{{ items.previous.href }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }}>
  21. <span class="sr-only">{{ 'Previous page'|t }}</span>
  22. <span aria-hidden="true">{{ items.previous.text|default('‹‹'|t) }}</span>
  23. </a>
  24. </li>
  25. {% endif %}
  26. {% if items.next %}
  27. <li class="next">
  28. <a href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }}>
  29. <span class="sr-only">{{ 'Next page'|t }}</span>
  30. <span aria-hidden="true">{{ items.next.text|default('››'|t) }}</span>
  31. </a>
  32. </li>
  33. {% endif %}
  34. </ul>
  35. </nav>
  36. {% endif %}