From: Michael Tremer Date: Tue, 5 May 2026 14:46:33 +0000 (+0000) Subject: dbl: Don't fail to render pages if they have never been updated X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7131862944cec5e22a75332ee9401b00689fecb2;p=ipfire.org.git dbl: Don't fail to render pages if they have never been updated Signed-off-by: Michael Tremer --- diff --git a/src/templates/dbl/lists/show.html b/src/templates/dbl/lists/show.html index 4d8c7925..e2a92a03 100644 --- a/src/templates/dbl/lists/show.html +++ b/src/templates/dbl/lists/show.html @@ -45,7 +45,11 @@

- {{ locale.format_date(list.updated_at, shorter=True) }} + {% if list.updated_at %} + {{ locale.format_date(list.updated_at, shorter=True) }} + {% else %} + {{ _("Never") }} + {% end %}

diff --git a/src/templates/dbl/modules/sources.html b/src/templates/dbl/modules/sources.html index 98513d79..a4a7d932 100644 --- a/src/templates/dbl/modules/sources.html +++ b/src/templates/dbl/modules/sources.html @@ -39,7 +39,11 @@ - {{ locale.format_date(source.updated_at, shorter=True) }} + {% if source.updated_at %} + {{ locale.format_date(source.updated_at, shorter=True) }} + {% else %} + {{ _("Never") }} + {% end %} {# Total Domains #}