From: Michael Tremer Date: Tue, 30 Dec 2025 16:55:23 +0000 (+0000) Subject: dnsbl: Show how many pending reports there are X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=490d79c54b407d7fd4333520045cd0126eaf3d88;p=ipfire.org.git dnsbl: Show how many pending reports there are Signed-off-by: Michael Tremer --- diff --git a/src/backend/dnsbl.py b/src/backend/dnsbl.py index beec69c0..772bf5ff 100644 --- a/src/backend/dnsbl.py +++ b/src/backend/dnsbl.py @@ -211,6 +211,10 @@ class List(Model): return [Report(self._backend, **data) for data in response] + # Pending Reports + + pending_reports : int + # Report! async def report(self, name, reported_by, comment=None, block=True): """ diff --git a/src/templates/dnsbl/lists/show.html b/src/templates/dnsbl/lists/show.html index 5f1c2b2e..2d3a144e 100644 --- a/src/templates/dnsbl/lists/show.html +++ b/src/templates/dnsbl/lists/show.html @@ -85,7 +85,13 @@ - {{ _("Reports") }} + + {{ _("Reports") }} + + {% if list.pending_reports %} + ({{ list.pending_reports }}) + {% end %} +