mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-25 17:32:16 +00:00
Better approach to generic list templates + other deduplication
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
{% load url_replace from filters %}
|
||||
{% if is_paginated %}
|
||||
{% load url_replace from filters %}
|
||||
<div class="row justify-content-center pt-3">
|
||||
<nav>
|
||||
<ul class="pagination">
|
||||
{% if has_previous %}
|
||||
<li class="page-item"><a class="page-link" href="?{% url_replace request 'page' previous %}">‹‹</a></li>
|
||||
{% else %}
|
||||
<li class="page-item disabled">
|
||||
<ul class="pagination">
|
||||
{% if has_previous %}
|
||||
<li class="page-item"><a class="page-link" href="?{% url_replace request 'page' previous %}">‹‹</a></li>
|
||||
{% else %}
|
||||
<li class="page-item disabled">
|
||||
<span class="page-link" aria-hidden="true">‹‹</span>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if show_first %}
|
||||
<li class="page-item"><a class="page-link" href="?{% url_replace request 'page' first %}" class="prev">{{ first }}</a></li>
|
||||
@@ -37,4 +38,5 @@
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user