From: Michael Tremer Date: Tue, 30 Dec 2025 13:55:03 +0000 (+0000) Subject: dnsbl: Show some more metadata about lists X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c20818f9c922dbc242e57c0161c506cce83370d;p=ipfire.org.git dnsbl: Show some more metadata about lists Signed-off-by: Michael Tremer --- diff --git a/src/backend/dnsbl.py b/src/backend/dnsbl.py index b1940cee..018f5cf9 100644 --- a/src/backend/dnsbl.py +++ b/src/backend/dnsbl.py @@ -137,6 +137,9 @@ class List(Model): # Total Domains total_domains : int + # Updated At + updated_at : datetime.datetime | None + def __eq__(self, other): if isinstance(other, self.__class__): return self.slug == other.slug diff --git a/src/templates/dnsbl/list.html b/src/templates/dnsbl/list.html index e583e3ae..0e0f64e5 100644 --- a/src/templates/dnsbl/list.html +++ b/src/templates/dnsbl/list.html @@ -37,12 +37,45 @@ {{ list }} - {# Description #} - {% if list.description %} -
+
+
+ {{ list.license }} +
+ + {# Description #} + {% if list.description %} {{ list.description }} -
- {% end %} + {% end %} + + + + + + {# Information #} +
+
+
+
+
+

+ {{ _("Domains Listed") }} +

+

+ {{ format_number(list.total_domains) }} +

+
+
+ +
+
+

+ {{ _("Last Updated") }} +

+

+ {{ locale.format_date(list.updated_at, shorter=True) }} +

+
+
@@ -51,7 +84,7 @@ {% if sources %}
-
{{ _("Sources") }}
+

{{ _("Sources") }}