From 07aa16511555550c4166c893ce033b308130aa37 Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 3 Aug 2024 08:48:13 +0200 Subject: [PATCH] feat: Only display notification counter if there are notifications --- src/fellchensammlung/templates/fellchensammlung/header.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/header.html b/src/fellchensammlung/templates/fellchensammlung/header.html index 23a38ac..c133e9a 100644 --- a/src/fellchensammlung/templates/fellchensammlung/header.html +++ b/src/fellchensammlung/templates/fellchensammlung/header.html @@ -23,7 +23,9 @@ - {{ user.get_num_unread_notifications }} + {% if user.get_num_unread_notifications > 0 %} + {{ user.get_num_unread_notifications }} + {% endif %}