Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
cd2e27d7
Commit
cd2e27d7
authored
Jul 30, 2017
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'adv/previous-pagination'
parents
f73b3a0b
5465b8e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
layout.html
cps/templates/layout.html
+5
-1
No files found.
cps/templates/layout.html
View file @
cd2e27d7
...
...
@@ -181,6 +181,10 @@
{% block body %}{% endblock %}
{% if pagination and (pagination.has_next or pagination.has_prev) %}
<div
class=
"pagination"
>
{% if pagination.has_prev %}
<a
class=
"previous"
href=
"{{ url_for_other_page(pagination.page - 1)
}}"
>
«
{{_('Previous')}}
</a>
{% endif %}
{% for page in pagination.iter_pages() %}
{% if page %}
{% if page != pagination.page %}
...
...
@@ -194,7 +198,7 @@
{% endfor %}
{% if pagination.has_next %}
<a
class=
"next"
href=
"{{ url_for_other_page(pagination.page + 1)
}}"
>
Next
»
</a>
}}"
>
{{_('Next')}}
»
</a>
{% endif %}
</div>
{% endif %}
...
...
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