Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bootstrap_barrio-3382683
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
bootstrap_barrio-3382683
Commits
a8cc8a49
Commit
a8cc8a49
authored
4 years ago
by
Alberto Siles
Committed by
Alberto Siles
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Pagination not recognizing override label text
parent
10040d5b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/navigation/pager.html.twig
+10
-10
10 additions, 10 deletions
templates/navigation/pager.html.twig
with
10 additions
and
10 deletions
templates/navigation/pager.html.twig
+
10
−
10
View file @
a8cc8a49
...
...
@@ -30,15 +30,15 @@
*/
#}
{%
if
items
%}
<nav
aria-label=
"
Page navigation
"
>
<h4
id=
"
pagination-
heading"
class=
"
visually-hidden
"
>
{{
'Pagination'
|
t
}}
</h4>
<nav
aria-label=
"
{{
heading_id
}}
"
>
<h4
id=
"
{{
heading
_id
}}
"
class=
"
sr-only
"
>
{{
'Pagination'
|
t
}}
</h4>
<ul
class=
"pagination js-pager__items"
>
{# Print first item if we are not on the first page. #}
{%
if
items.first
%}
<li
class=
"page-item"
>
<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
class=
"sr-only"
>
{{
items.first.text
|
default
(
'First'
|
t
)
}}
</span>
<span
aria-hidden=
"true"
>
{{
items.first.text
|
default
(
'«'
|
t
)
}}
</span>
<span
class=
"sr-only"
>
{{
'First
page
'
|
t
}}
</span>
</a>
</li>
{%
endif
%}
...
...
@@ -46,8 +46,8 @@
{%
if
items.previous
%}
<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"
>
<span
aria-hidden=
"true"
>
‹
</span>
<span
class=
"sr-only"
>
{{
items.previous.text
|
default
(
'Previous'
|
t
)
}}
</span>
<span
aria-hidden=
"true"
>
{{
items.previous.text
|
default
(
'‹'
|
t
)
}}
</span>
<span
class=
"sr-only"
>
{{
'Previous
page
'
|
t
}}
</span>
</a>
</li>
{%
endif
%}
...
...
@@ -77,8 +77,8 @@
{%
if
items.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"
>
<span
aria-hidden=
"true"
>
›
</span>
<span
class=
"sr-only"
>
{{
items.next.text
|
default
(
'Next'
|
t
)
}}
</span>
<span
aria-hidden=
"true"
>
{{
items.next.text
|
default
(
'›'
|
t
)
}}
</span>
<span
class=
"sr-only"
>
{{
'Next
page
'
|
t
}}
</span>
</a>
</li>
{%
endif
%}
...
...
@@ -86,8 +86,8 @@
{%
if
items.last
%}
<li
class=
"page-item"
>
<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
class=
"sr-only"
>
{{
items.last.text
|
default
(
'Last'
|
t
)
}}
</span>
<span
aria-hidden=
"true"
>
{{
items.last.text
|
default
(
'»'
|
t
)
}}
</span>
<span
class=
"sr-only"
>
{{
'Last
page
'
|
t
}}
</span>
</a>
</li>
{%
endif
%}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment