From 1617cfaac71b680e0d4dd264718934776d9a3725 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 12 Mar 2021 16:20:10 -0800 Subject: [PATCH] Clarifies report headers in moderation panel --- bookwyrm/templates/moderation/report.html | 8 ++++++-- bookwyrm/templates/moderation/report_preview.html | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/moderation/report.html b/bookwyrm/templates/moderation/report.html index d2769544..a231c41c 100644 --- a/bookwyrm/templates/moderation/report.html +++ b/bookwyrm/templates/moderation/report.html @@ -2,8 +2,8 @@ {% load i18n %} {% load humanize %} -{% block title %}{% blocktrans with report_id=report.id %}Report #{{ report_id }}{% endblocktrans %}{% endblock %} -{% block header %}{% blocktrans with report_id=report.id %}Report #{{ report_id }}{% endblocktrans %}{% endblock %} +{% block title %}{% blocktrans with report_id=report.id username=report.user.username %}Report #{{ report_id }}: {{ username }}{% endblocktrans %}{% endblock %} +{% block header %}{% blocktrans with report_id=report.id username=report.user.username %}Report #{{ report_id }}: {{ username }}{% endblocktrans %}{% endblock %} {% block panel %}
@@ -57,6 +57,9 @@

{% trans "Reported statuses" %}

+ {% if not report.statuses.exists %} + {% trans "No statuses reported" %} + {% else %}
    {% for status in report.statuses.select_subclasses.all %}
  • @@ -68,5 +71,6 @@
  • {% endfor %}
+ {% endif %}
{% endblock %} diff --git a/bookwyrm/templates/moderation/report_preview.html b/bookwyrm/templates/moderation/report_preview.html index 3a5ebcf9..363783d5 100644 --- a/bookwyrm/templates/moderation/report_preview.html +++ b/bookwyrm/templates/moderation/report_preview.html @@ -3,7 +3,7 @@ {% load humanize %} {% block card-header %}

- {{ report.user.username }} + {% blocktrans with report_id=report.id username=report.user.username %}Report #{{ report_id }}: {{ username }}{% endblocktrans %}

{% endblock %}