Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jehba
ddec-info-ng
Commits
dbba1bdd
Commit
dbba1bdd
authored
Jul 05, 2019
by
Baudouin Feildel
Browse files
Improve pagination
parent
b4d8449c
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/admin/includes/pagination.html.twig
View file @
dbba1bdd
...
...
@@ -4,7 +4,7 @@
<ul
class=
"pagination"
>
{%
if
currentPage
>
1
%}
<li>
<a
href=
"?p=
{{
currentPage
-
1
}}
"
aria-label=
"Précédent"
>
<a
href=
"?p=
{{
currentPage
-
1
}}
"
aria-label=
"P
age p
récédent
e
"
>
<span
aria-hidden=
"true"
>
«
</span>
</a>
</li>
...
...
@@ -20,13 +20,13 @@
{%
if
p
!=
currentPage
%}
<li><a
href=
"?p=
{{
p
}}
"
>
{{
p
}}
</a></li>
{%
else
%}
<li
class=
"active"
><span
>
{{
p
}}
<span
class=
"sr-only"
>
(
page courante
)
</span>
</span></li>
<li
class=
"active"
><span
aria-label=
"
page courante
"
>
{{
p
}}
</span></li>
{%
endif
%}
{%
endfor
%}
{%
if
currentPage
<
pageCount
%}
<li>
<a
href=
"?p=
{{
currentPage
+
1
}}
"
aria-label=
"
S
uivant"
>
<a
href=
"?p=
{{
currentPage
+
1
}}
"
aria-label=
"
Page s
uivant
e
"
>
<span
aria-hidden=
"true"
>
»
</span>
</a>
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment