mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Set up authentication system
This commit is contained in:
27
templates/pagination.html
Normal file
27
templates/pagination.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{% if is_paginated %}
|
||||
<div>
|
||||
<ul class="pagination">
|
||||
{% if page_obj.has_previous %}
|
||||
<li><a href="?page{{ page_obj.previous_page_number }}{{ getvars }}{{ hashtag }}" class="prev">‹‹</a></li>
|
||||
{% else %}
|
||||
<li class="disabled prev"><a href="#">‹‹</a></li>
|
||||
{% endif %}
|
||||
{% for page in pages %}
|
||||
{% if page %}
|
||||
{% ifequal page page_obj.number %}
|
||||
<li class="current page active"><a href="#">{{ page }}</a></li>
|
||||
{% else %}
|
||||
<li><a href="?page={{ page }}{{ getvars }}{{ hashtag }}" class="page">{{ page }}</a></li>
|
||||
{% endifequal %}
|
||||
{% else %}
|
||||
...
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if page_obj.has_next %}
|
||||
<li><a href="?page={{ page_obj.next_page_number }}{{ getvars }}{{ hashtag }}" class="next">››</a></li>
|
||||
{% else %}
|
||||
<li class="disabled next"><a href="#">››</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user