Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
5e0f4aee
Commit
5e0f4aee
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
add "jump to page" control in pagination
closes #69 Former-commit-id: 5ffdd28c0a3252f69c12f60dcb5a7c9f2a0969fe
parent
fdb2f9e3
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
ippisite/ippidb/templates/compound_list.html
+19
-3
19 additions, 3 deletions
ippisite/ippidb/templates/compound_list.html
with
19 additions
and
3 deletions
ippisite/ippidb/templates/compound_list.html
+
19
−
3
View file @
5e0f4aee
...
...
@@ -122,10 +122,13 @@
</div>
<nav>
<ul
class=
"pagination justify-content-end"
>
<ul
class=
"pagination
pagination-sm
justify-content-end
col-12
"
>
{% if compounds.has_previous %}
<li
class=
"page-item"
>
<a
class=
"page-link"
href=
"?{% url_replace request 'page' compounds.previous_page_number %}"
tabindex=
"-1"
>
Previous
</a>
<a
class=
"page-link"
href=
"?{% url_replace request 'page' compounds.previous_page_number %}"
aria-label=
"Previous"
>
<span
aria-hidden=
"true"
>
«
</span>
<span
class=
"sr-only"
>
Previous
</span>
</a>
</li>
{% endif %}
...
...
@@ -135,9 +138,22 @@
{% if compounds.has_next %}
<li
class=
"page-item"
>
<a
class=
"page-link"
href=
"?{% url_replace request 'page' compounds.next_page_number %}"
tabindex=
"-1"
>
Next
</a>
<a
class=
"page-link"
href=
"?{% url_replace request 'page' compounds.next_page_number %}"
aria-label=
"Next"
>
<span
aria-hidden=
"true"
>
»
</span>
<span
class=
"sr-only"
>
Next
</span>
</a>
</li>
{% endif %}
<li
class=
"page-item ml-3"
>
<div
class=
"input-group input-group-sm"
>
<input
id=
"pageNumber"
type=
"number"
min=
"1"
max=
"{{compounds.paginator.num_pages}}"
step=
"1"
placeholder=
"page #"
style=
"width: 4em;"
aria-label=
"Page number"
>
<div
class=
"input-group-append"
>
<button
class=
"btn btn-outline-primary"
type=
"button"
onclick=
"modifyUrl('page',$('#pageNumber').val())"
>
Go
</button>
</div>
</div>
</li>
</ul>
</nav>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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