Hide paginator for empty pages

This commit is contained in:
Jeremy Stretch 2024-01-05 15:51:18 -05:00
parent e30ff425a8
commit 8197e83d96
3 changed files with 120 additions and 107 deletions

Binary file not shown.

View File

@ -1,3 +1,14 @@
// Object list tables
table.object-list {
// Hide border of last row
tbody > tr:last-child > td {
border-bottom-width: 0;
}
}
// Object attribute tables
table.attr-table { table.attr-table {
// Restyle row header // Restyle row header

View File

@ -1,7 +1,8 @@
{% load helpers %} {% load helpers %}
{% load i18n %} {% load i18n %}
<div class="d-flex justify-content-between align-items-center p-2"> {% if page %}
<div class="d-flex justify-content-between align-items-center border-top p-2">
{# Pages carousel #} {# Pages carousel #}
{% if paginator.num_pages > 1 %} {% if paginator.num_pages > 1 %}
@ -113,3 +114,4 @@
{# /Pagination options #} {# /Pagination options #}
</div> </div>
{% endif %}