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 += `