remotes/1693045480750635534/spooky-22
kek7198 2021-12-07 22:22:17 -06:00
parent 8ed27e01cb
commit c9bea8ef65
1 changed files with 8 additions and 12 deletions

View File

@ -120,24 +120,20 @@
</ul>
<!-- Pagination -->
{% if listing %}
<ul class="flex flex-wrap items-center mb-0">
<div class="flex flex-wrap items-center">
{% if page>1 %}
<li>
<a class="block px-2 py-1 text-sm font-bold text-gray-700 hover:text-gray-900 bg-gray-300 hover:bg-gray-400 active:shadow-inner" href="?page={{page-1}}&sort={{sort}}&t={{t}}" tabindex="-1">
Prev
</a>
</li>
<a class="block px-2 py-1 text-sm font-bold text-gray-700 hover:text-gray-900 bg-gray-300 hover:bg-gray-400 active:shadow-inner" href="?page={{page-1}}&sort={{sort}}&t={{t}}" tabindex="-1">
Prev
</a>
{% else %}
<li><span class="block px-2 py-1 text-sm font-bold text-gray-400 bg-gray-300/50 disabled">Prev</span></li>
<span class="block px-2 py-1 text-sm font-bold text-gray-400 bg-gray-300/50 disabled">Prev</span>
{% endif %}
{% if next_exists %}
<li class="page-item">
<a class="block px-2 py-1 text-sm font-bold text-gray-700 hover:text-gray-900 bg-gray-300 hover:bg-gray-400 active:shadow-inner" href="?page={{page+1}}&sort={{sort}}&t={{t}}">Next</a>
</li>
<a class="block px-2 py-1 text-sm font-bold text-gray-700 hover:text-gray-900 bg-gray-300 hover:bg-gray-400 active:shadow-inner" href="?page={{page+1}}&sort={{sort}}&t={{t}}">Next</a>
{% else %}
<li><span class="block px-2 py-1 text-sm font-bold text-gray-400 bg-gray-300/50 disabled">Next</span></li>
<span class="block px-2 py-1 text-sm font-bold text-gray-400 bg-gray-300/50 disabled">Next</span>
{% endif %}
</ul>
</div>
{% endif %}
</div>
</div>