diff --git a/backend/backups/database-2025-12-22T15-39-29-371Z.sqlite b/backend/backups/database-2025-12-22T15-39-29-371Z.sqlite new file mode 100644 index 0000000..362bda2 Binary files /dev/null and b/backend/backups/database-2025-12-22T15-39-29-371Z.sqlite differ diff --git a/backend/database.sqlite b/backend/database.sqlite index 8b85f52..ccabe1a 100644 Binary files a/backend/database.sqlite and b/backend/database.sqlite differ diff --git a/frontend/public/js/admin.js b/frontend/public/js/admin.js index faefaec..530a929 100644 --- a/frontend/public/js/admin.js +++ b/frontend/public/js/admin.js @@ -221,28 +221,91 @@ class AdminManager { } } - renderPagination(pagination) { - const el = document.getElementById('pagination'); + renderGenericPagination(containerId, pagination, callbackName) { + const el = document.getElementById(containerId); + if (!el) return; + + const { page, pages } = pagination; + if (pages <= 0) { + el.innerHTML = ''; + return; + } + let html = ''; - if (pagination.page > 1) { - html += `