views-mini-pager.html.twig in Open Social 8.7
Same filename and directory in other branches
- 8.9 themes/socialbase/templates/views/views-mini-pager.html.twig
- 8 themes/socialbase/templates/views/views-mini-pager.html.twig
- 8.2 themes/socialbase/templates/views/views-mini-pager.html.twig
- 8.3 themes/socialbase/templates/views/views-mini-pager.html.twig
- 8.4 themes/socialbase/templates/views/views-mini-pager.html.twig
- 8.5 themes/socialbase/templates/views/views-mini-pager.html.twig
- 8.6 themes/socialbase/templates/views/views-mini-pager.html.twig
- 8.8 themes/socialbase/templates/views/views-mini-pager.html.twig
Theme override for a views mini-pager.
Available variables:
- items: List of pager items.
See also
File
themes/socialbase/templates/views/views-mini-pager.html.twigView source
- {#
- /**
- * @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">{{ '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">
- <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">
- <use xlink:href="#icon-navigate_next"> </use>
- </svg>
- </span>
- </a>
- </li>
- {% endif %}
- </ul>
- </nav>
- {% endif %}