From 5a07d958378906cf777d973684e444df05b39e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 2 Jan 2025 14:23:11 +0100 Subject: [PATCH] fix: streamline/simplify dashboard layout --- templates/admin/index.html.twig | 155 +++++++++++------------- templates/house_manager/index.html.twig | 11 +- templates/manager/index.html.twig | 9 +- 3 files changed, 80 insertions(+), 95 deletions(-) diff --git a/templates/admin/index.html.twig b/templates/admin/index.html.twig index b9469e8..d693332 100644 --- a/templates/admin/index.html.twig +++ b/templates/admin/index.html.twig @@ -3,30 +3,25 @@ {% block content %}
-

- Neue Dokumente +

+ Neue Dokumente + {% if newDocumentsCount > 0 or pendingDocumentsCount > 0 %} + {{ newDocumentsCount }} neu, {{ pendingDocumentsCount }} in Bearbeitung + {% endif %}

- {% if newDocumentsCount > 0 or pendingDocumentsCount > 0 %} -

- {{ newDocumentsCount }} neu {{ pendingDocumentsCount }} in Bearbeitung -

- {% endif %}
-

- Neue Feedbacks +

+ Neue Feedbacks + {% if pendingFeedbacksCount > 0 %} + {{ pendingFeedbacksCount }} freizugeben + {% endif %}

- {% if pendingFeedbacksCount > 0 %} -

- {{ pendingFeedbacksCount }} freizugeben -

- {% endif %}