diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-02 14:55:37 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-04-16 16:43:03 +0200 |
commit | 7b155a75e3d95d98195d5c54244f893e7d074939 (patch) | |
tree | c70f7fcf0fde434cd50dbb999e50713f46c1f1e0 /ishtar_common/templates | |
parent | 766244bb0450d4b7d92906fde98299d010b702ec (diff) | |
download | Ishtar-7b155a75e3d95d98195d5c54244f893e7d074939.tar.bz2 Ishtar-7b155a75e3d95d98195d5c54244f893e7d074939.zip |
✨ add pagination to old imports page
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/ishtar/import_list.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/import_list.html b/ishtar_common/templates/ishtar/import_list.html index ec5e714de..ca3edef4b 100644 --- a/ishtar_common/templates/ishtar/import_list.html +++ b/ishtar_common/templates/ishtar/import_list.html @@ -27,6 +27,17 @@ <i class="fa fa-plus"></i> {% trans 'import (group)' %} </a>{% endif %} </div>{% endif %} + +{% if current_page %} +<div class='dataTables_wrapper'> + <div class='dataTables_paginate'><ul> + {% for page_n in page_range %}<li class="paginate_button page-item{% if page_n == '...' or page_n == current_page %} disabled{% endif %}"> + <a href="{% if page_n == '...' or page_n == current_page %}#{% else %}?page={{page_n}}{% endif %}" tabindex="0" class="page-link">{{page_n}}</a> + </li>{% endfor %} + </ul></div> +</div> +{% endif %} + <div id="import-container"> {% include "ishtar/import_table.html" %} </div> |