From 020153484ae0a1decf9cb4ed1c6590462b0e95af Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 1 May 2026 19:34:26 +0200 Subject: [PATCH] =?UTF-8?q?Feature:=20Moderation-Tab=20=E2=80=94=20Action-?= =?UTF-8?q?Items-Karte=20oben,=20SW=20by-v588?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/static/js/app.js | 2 +- backend/static/js/pages/admin.js | 30 +++++++++++++++++++++++++++++- backend/static/sw.js | 2 +- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/backend/static/js/app.js b/backend/static/js/app.js index d060792..1db5ad9 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '587'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '588'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.2.1'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/pages/admin.js b/backend/static/js/pages/admin.js index 8a3b6c8..fa8df59 100644 --- a/backend/static/js/pages/admin.js +++ b/backend/static/js/pages/admin.js @@ -1479,7 +1479,35 @@ window.Page_admin = (() => { API.get('/wiki/foto-submissions').catch(() => []), ]); - let html = ''; + const modItems = [ + { label: 'Züchter-Einreichungen', count: zuchter.length, icon: 'certificate' }, + { label: 'Foto-Einreichungen', count: fotos.length, icon: 'image' }, + ].filter(i => i.count > 0); + + let html = ` +
+ + ${UI.icon('check-square')} Zu erledigen + + ${modItems.length === 0 + ? ` + ${UI.icon('check-circle')} Alles erledigt + ` + : modItems.map(i => ` + + ${UI.icon(i.icon)} ${i.label} + ${i.count} + `).join('') + } +
`; // --- Züchter-Einreichungen --- html += `