From 28de73a6601069f508a54c6945be5ee98ff75509 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Sat, 6 Nov 2010 21:13:23 +0000 Subject: [PATCH] Add paginator.html template --- pyi2phosts/templates/paginator.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pyi2phosts/templates/paginator.html diff --git a/pyi2phosts/templates/paginator.html b/pyi2phosts/templates/paginator.html new file mode 100644 index 0000000..e50132d --- /dev/null +++ b/pyi2phosts/templates/paginator.html @@ -0,0 +1,27 @@ +
+ {% if has_previous %} + + < Prev + + {% endif %} + + {% if show_first %} + 1 + ... + {% endif %} + {% for linkpage in page_numbers %} + {% ifequal linkpage page %} + {{ page }} + {% else %} + {{ linkpage }} + {% endifequal %} + {% endfor %} + {% if show_last %} + ... + {{ pages }} + {% endif %} + {% if has_next %} + Next > + {% endif %} +