Skip to content
Snippets Groups Projects
Commit a8cc8a49 authored by Alberto Siles's avatar Alberto Siles Committed by Alberto Siles
Browse files

Pagination not recognizing override label text

parent 10040d5b
No related branches found
No related tags found
No related merge requests found
...@@ -30,15 +30,15 @@ ...@@ -30,15 +30,15 @@
*/ */
#} #}
{% if items %} {% if items %}
<nav aria-label="Page navigation"> <nav aria-label="{{ heading_id }}">
<h4 id="pagination-heading" class="visually-hidden">{{ 'Pagination'|t }}</h4> <h4 id="{{ heading_id }}" class="sr-only">{{ 'Pagination'|t }}</h4>
<ul class="pagination js-pager__items"> <ul class="pagination js-pager__items">
{# Print first item if we are not on the first page. #} {# Print first item if we are not on the first page. #}
{% if items.first %} {% if items.first %}
<li class="page-item"> <li class="page-item">
<a href="{{ items.first.href }}" title="{{ 'Go to first page'|t }}"{{ items.first.attributes|without('href', 'title') }} class="page-link"> <a href="{{ items.first.href }}" title="{{ 'Go to first page'|t }}"{{ items.first.attributes|without('href', 'title') }} class="page-link">
<span aria-hidden="true">«</span> <span aria-hidden="true">{{ items.first.text|default('«'|t) }}</span>
<span class="sr-only">{{ items.first.text|default('First'|t) }}</span> <span class="sr-only">{{ 'First page'|t }}</span>
</a> </a>
</li> </li>
{% endif %} {% endif %}
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
{% if items.previous %} {% if items.previous %}
<li class="page-item"> <li class="page-item">
<a href="{{ items.previous.href }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }} class="page-link"> <a href="{{ items.previous.href }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }} class="page-link">
<span aria-hidden="true"></span> <span aria-hidden="true">{{ items.previous.text|default('‹'|t) }}</span>
<span class="sr-only">{{ items.previous.text|default('Previous'|t) }}</span> <span class="sr-only">{{ 'Previous page'|t }}</span>
</a> </a>
</li> </li>
{% endif %} {% endif %}
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
{% if items.next %} {% if items.next %}
<li class="pager__item--next"> <li class="pager__item--next">
<a href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }} class="page-link"> <a href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }} class="page-link">
<span aria-hidden="true"></span> <span aria-hidden="true">{{ items.next.text|default('›'|t) }}</span>
<span class="sr-only">{{ items.next.text|default('Next'|t) }}</span> <span class="sr-only">{{ 'Next page'|t }}</span>
</a> </a>
</li> </li>
{% endif %} {% endif %}
...@@ -86,8 +86,8 @@ ...@@ -86,8 +86,8 @@
{% if items.last %} {% if items.last %}
<li class="page-item"> <li class="page-item">
<a href="{{ items.last.href }}" title="{{ 'Go to last page'|t }}"{{ items.last.attributes|without('href', 'title') }} class="page-link"> <a href="{{ items.last.href }}" title="{{ 'Go to last page'|t }}"{{ items.last.attributes|without('href', 'title') }} class="page-link">
<span aria-hidden="true">»</span> <span aria-hidden="true">{{ items.last.text|default('»'|t) }}</span>
<span class="sr-only">{{ items.last.text|default('Last'|t) }}</span> <span class="sr-only">{{ 'Last page'|t }}</span>
</a> </a>
</li> </li>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment