feat: Add reports for comments, add to admin

This commit is contained in:
2024-05-30 15:46:51 +02:00
parent a6b9c9f094
commit 273bef9526
9 changed files with 188 additions and 18 deletions

View File

@@ -4,6 +4,7 @@
<div class="comment-header">
<b>{{ comment.user }}</b>
{{ comment.created_at }}
<a class="adoption-card-report-link" href="{{ comment.get_report_url }}"><i class="fa-solid fa-flag"></i></a>
</div>
<p>
{{ comment.text | render_markdown }}

View File

@@ -2,7 +2,7 @@
<div class="report">
<h2>
{% blocktranslate %}
Meldung von {{ report.adoption_notice.name }}
Meldung von {{ report.reported_content }}
{% endblocktranslate %}
</h2>
{% if report.reported_broken_rules %}
@@ -14,6 +14,6 @@
</ul>
{% endif %}
<p><b>{% translate "Kommentar zur Meldung" %}:</b>
{{ report.comment }}
{{ report.user_comment }}
</p>
</div>