1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-09 06:18:05 +00:00
py-i2phosts/pyi2phosts/templates/paginator.html

29 lines
857 B
HTML
Raw Normal View History

2010-11-06 21:13:23 +00:00
<div class="pager">
{% if has_previous %}
<span class="page">
<a href="?page={{ previous }}">&lt; Prev</a>
</span>
{% endif %}
{% if show_first %}
<span class="page"><a href="?page=1">1</a></span>
<span class="ellipsis">...</span>
{% endif %}
{% for linkpage in page_numbers %}
{% ifequal linkpage page %}
<span class="current">{{ page }}</span>
{% else %}
<span class="page"><a href="?page={{ linkpage }}"
>{{ linkpage }}</a></span>
{% endifequal %}
{% endfor %}
{% if show_last %}
<span class="ellipsis">...</span>
<span class="page"><a href="?page=last">{{ pages }}</a></span>
{% endif %}
{% if has_next %}
<span class="page"><a href="?page={{ next }}">Next &gt;</a></span>
{% endif %}
{{ paginator.count }} total
2010-11-06 21:13:23 +00:00
</div>