From 073b04757f7f2ee55694d5a4ec76e6c838172da4 Mon Sep 17 00:00:00 2001 From: Mordan Vitalii Date: Fri, 28 Jun 2024 12:56:35 +0500 Subject: [PATCH] Fix error with delete rott report for comment --- web/users/templates/users/showComments.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/users/templates/users/showComments.html b/web/users/templates/users/showComments.html index 0cc1e5c..d2c13d0 100644 --- a/web/users/templates/users/showComments.html +++ b/web/users/templates/users/showComments.html @@ -46,7 +46,13 @@

{% trans 'Comments to unsafe marks' %}

{{ forloop.counter }} {{ comment.date }} {{ comment.author.username }} - {{comment.mark.report.root.job.name}} + + {% if comment.mark.report %} + {{comment.mark.report.root.job.name}} + {% else %} + {% trans 'Root report was deleted' %} + {% endif %} + {{ comment.description|safe }}