Fixes some user/reported_user references

This commit is contained in:
Mouse Reeve 2024-01-02 18:54:16 -08:00
parent 052823e0c9
commit d4013b9721

View file

@ -57,9 +57,9 @@
{% endif %}
{% if report.reported_user %}
{% include 'settings/users/user_info.html' with reported_user=report.reported_user %}
{% include 'settings/users/user_info.html' with user=report.reported_user %}
{% include 'settings/users/user_moderation_actions.html' with reported_user=report.reported_user %}
{% include 'settings/users/user_moderation_actions.html' with user=report.reported_user %}
{% endif %}
<div class="block content">
@ -70,8 +70,8 @@
<li class="mb-2">
<div class="is-flex">
<p class="mb-0 is-flex-grow-1">
{% blocktrans trimmed with reported_user=report.user|username user_link=report.user.local_path %}
<a href="{{ user_link }}">{{ reported_user}}</a> opened this report
{% blocktrans trimmed with user=report.user|username user_link=report.user.local_path %}
<a href="{{ user_link }}">{{ user }}</a> opened this report
{% endblocktrans %}
</p>
<span class="tag">{{ report.created_date }}</span>
@ -83,12 +83,12 @@
<div class="is-flex">
<p class="mb-0 is-flex-grow-1">
{% if comment.action_type == "comment" %}
{% blocktrans trimmed with reported_user=comment.reported_user|username user_link=comment.reported_user.local_path %}
<a href="{{ user_link }}">{{ reported_user}}</a> commented on this report:
{% blocktrans trimmed with user=comment.user|username user_link=comment.user.local_path %}
<a href="{{ user_link }}">{{ user}}</a> commented on this report:
{% endblocktrans %}
{% else %}
{% blocktrans trimmed with reported_user=comment.reported_user|username user_link=comment.reported_user.local_path %}
<a href="{{ user_link }}">{{ reported_user}}</a> took an action on this report:
{% blocktrans trimmed with user=comment.user|username user_link=comment.user.local_path %}
<a href="{{ user_link }}">{{ user}}</a> took an action on this report:
{% endblocktrans %}
<span class="has-text-weight-bold">
{{ comment.get_action_type_display }}