From: Michael Tremer Date: Wed, 4 Mar 2026 13:19:15 +0000 (+0000) Subject: dbl: Show closed status for reports X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=1a9be7f22f234135ca569bf9f2dbf0231e9a670e;p=ipfire.org.git dbl: Show closed status for reports Signed-off-by: Michael Tremer --- diff --git a/src/templates/dbl/reports/show.html b/src/templates/dbl/reports/show.html index 24164b3a..07a3bee3 100644 --- a/src/templates/dbl/reports/show.html +++ b/src/templates/dbl/reports/show.html @@ -106,6 +106,60 @@ {% end %} + {# Show closed status #} + {% if report.is_closed() %} + {% set account = backend.accounts.get_by_uid(report.closed_by) %} + +
+ {# Avatar #} + {% if account %} +
+ {% module Avatar(account, size=64) %} +
+ {% end %} + +
+ {% if account %} +

+ + {{ account }} + +

+ {% end %} + +

+ {% if report.accepted %} + + + + + + + {{ _("This report has been accepted") }} + + + {% else %} + + + + + + + {{ _("This report has been rejected") }} + + + {% end %} +

+ +

+ + {{ locale.format_date(report.closed_at, shorter=True) }} + +

+
+
+ {% end %} + {# Actions #} {% if not report.is_closed() %}