]> git.ipfire.org Git - ipfire.org.git/commitdiff
dbl: Don't fail to render pages if they have never been updated master
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 May 2026 14:46:33 +0000 (14:46 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 May 2026 14:46:33 +0000 (14:46 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/dbl/lists/show.html
src/templates/dbl/modules/sources.html

index 4d8c7925059c8768c51274be9b9ae2a9ac6065ac..e2a92a035ffd5bac4126cca39f5d798f9de62b3c 100644 (file)
                                <div class="column is-one-third has-text-centered">
                                        <div>
                                                <p class="title is-3 mb-1">
-                                                       {{ locale.format_date(list.updated_at, shorter=True) }}
+                                                       {% if list.updated_at %}
+                                                               {{ locale.format_date(list.updated_at, shorter=True) }}
+                                                       {% else %}
+                                                               {{ _("Never") }}
+                                                       {% end %}
                                                </p>
 
                                                <p class="heading">
index 98513d791df9590f60f7c0893111424d79c9f81f..a4a7d932cc33743909014e5787173066cbc021d6 100644 (file)
                                </td>
 
                                <td class="has-text-right">
-                                       {{ locale.format_date(source.updated_at, shorter=True) }}
+                                       {% if source.updated_at %}
+                                               {{ locale.format_date(source.updated_at, shorter=True) }}
+                                       {% else %}
+                                               {{ _("Never") }}
+                                       {% end %}
                                </td>
 
                                {# Total Domains #}