summaryrefslogtreecommitdiff
path: root/lib/pagination/templates
diff options
context:
space:
mode:
authorluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2009-11-23 20:34:40 +0000
committerluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2009-11-23 20:34:40 +0000
commitccde62e1d2c86be183b2e546957b2e77087ecde6 (patch)
tree47cd81c67958620d41d8bbcd40c75d888e4251be /lib/pagination/templates
parent526fbe767130b4dedd75841969808fe750afa22e (diff)
added externals and lib
Diffstat (limited to 'lib/pagination/templates')
-rw-r--r--lib/pagination/templates/pagination/pagination.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/pagination/templates/pagination/pagination.html b/lib/pagination/templates/pagination/pagination.html
new file mode 100644
index 0000000..2ecffb4
--- /dev/null
+++ b/lib/pagination/templates/pagination/pagination.html
@@ -0,0 +1,30 @@
+{% load pagination_tags %}
+{% if is_paginated %}
+<div class="pagination">
+ {% if page_obj.has_previous %}
+ <a href="{% if use_page_path %}{% page_path prev_page %}{% else %}?page={{ page_obj.previous_page_number }}{{ getvars }}{% endif %}" class="prev">&lsaquo;&lsaquo; previous</a>
+ {% else %}
+ <span class="disabled prev"></span>
+ {% endif %}
+ {% for page in pages %}
+ {% if page %}
+ {% ifequal page page_obj.number %}
+ <span class="current page">{{ page }}</span>
+ {% else %}
+ {% if use_page_path %}
+ <a href="{% page_path page %}" class="page">{{ page }}</a>
+ {% else %}
+ <a href="?page={{ page }}{{ getvars }}" class="page">{{ page }}</a>
+ {% endif %}
+ {% endifequal %}
+ {% else %}
+ ...
+ {% endif %}
+ {% endfor %}
+ {% if page_obj.has_next %}
+ <a href="{% if use_page_path %}{% page_path next_page %}{% else %}?page={{ page_obj.next_page_number }}{{ getvars }}{% endif %}" class="next">next &rsaquo;&rsaquo;</a>
+ {% else %}
+ <span class="disabled next">next &rsaquo;&rsaquo;</span>
+ {% endif %}
+</div>
+{% endif %}