From: Michael Tremer Date: Tue, 30 Dec 2025 12:56:16 +0000 (+0000) Subject: dnsbl: Update the header of the lists page X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=231a4bc41c8b9951c279065d4f0c2faed5324493;p=ipfire.org.git dnsbl: Update the header of the lists page Signed-off-by: Michael Tremer --- diff --git a/src/backend/dnsbl.py b/src/backend/dnsbl.py index a0950f1a..b1940cee 100644 --- a/src/backend/dnsbl.py +++ b/src/backend/dnsbl.py @@ -107,6 +107,9 @@ class List(Model): """ Represents a list """ + def __str__(self): + return self.name + # Name name : str diff --git a/src/templates/dnsbl/list.html b/src/templates/dnsbl/list.html index 5c00ee47..a7f70618 100644 --- a/src/templates/dnsbl/list.html +++ b/src/templates/dnsbl/list.html @@ -2,23 +2,42 @@ {% block head %} {% module OpenGraph( - title=_("IPFire DNSBL - %s") % list.name, + title=_("IPFire DNSBL - %s") % list, description=list.description, ) %} {% end block %} -{% block title %} - {{ _("IPFire DNSBL") }}{% if list.description %} - {{ list.description }}{% end %} -{% end block %} +{% block title %}{{ _("IPFire DNSBL") }} - {{ list }}{% end block %} {% block container %} -
+
+ +

- {{ list.name }} + {{ list }}

+ {# Description #} {% if list.description %}
{{ list.description }} @@ -30,7 +49,7 @@ {# Sources #} {% if sources %} -
+
{{ _("Sources") }}