Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

Improved many-page pagination

This one was adapted from Page numbers with ... like in Digg. See that one for more reference.

Digg-like page numbering using inclusion tag.

Usage in template:

{% load pagination %} {% pagination yourpage %}

Inclusion template pagination.html:

{% if page.has_previous %}
    <a href="?page={{ page.previous_page_number }}"><img src="{{ MEDIA_URL }}images/page/cyclenav_l.png" alt ...
No Soup for you

Don't be the product, buy the product!

YES, I want to SOUP ●UP for ...