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
SRCT
bookshare
Commits
9dd0f8c4
Commit
9dd0f8c4
authored
Apr 24, 2015
by
Daniel W Bond
Browse files
fixed pagination
parent
414391b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
bookshare/trades/templates/list_listings.html
View file @
9dd0f8c4
...
...
@@ -37,42 +37,22 @@ SRCT Bookshare • Latest Listings
{% endfor %}
</div>
<div
class=
"row"
>
<div
class=
"col-lg-4 col-lg-offset-4"
>
<ul
class=
"pager"
>
{% if listings.has_previous %}
<li
class=
"previous"
>
<a
href=
"?page={{ listings.previous_page_number }}"
>
<h4>
←
Newer
</h4>
</a>
</li>
{% else %}
<li
class=
"previous disabled"
>
<a>
<h4>
←
Newer
</h4>
</a>
</li>
{% endif %}
{% if listings.has_next %}
<li
class=
"next"
>
<a
href=
"?page={{ listings.next_page_number }}"
>
<h4>
Older
→
</h4>
</a>
</li>
{% else %}
<li
class=
"next disabled"
>
<a>
<h4>
Older
→
</h4>
</a>
</li>
{% endif %}
</ul>
</div>
</div>
{% if is_paginated %}
<nav>
<ul
class=
"pager"
>
{% if page_obj.has_next %}
<li
class=
"next"
>
<a
href=
"/share/all/?page={{ page_obj.next_page_number }}"
><strong>
next
→
</strong></a>
</li>
{% endif %}
{% if page_obj.has_previous %}
<li
class=
"previous"
>
<a
href=
"/share/all/?page={{ page_obj.previous_page_number }}"
><strong>
←
previous
</strong></a>
</li>
{% endif %}
</ul>
</nav>
{% endif %}
{% else %}
...
...
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