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 %} +