From 0612930fb95b242183a73f52b667b44673797f81 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 2 Jan 2024 19:14:40 -0800 Subject: [PATCH] UI for deciding to send reports to remote Shows a checkbox for the user and lets the admin know --- bookwyrm/forms/forms.py | 2 +- bookwyrm/templates/settings/reports/report_preview.html | 9 +++++++++ bookwyrm/templates/snippets/report_modal.html | 9 +++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/bookwyrm/forms/forms.py b/bookwyrm/forms/forms.py index 4764b871a..96d8142a5 100644 --- a/bookwyrm/forms/forms.py +++ b/bookwyrm/forms/forms.py @@ -44,7 +44,7 @@ class GoalForm(CustomForm): class ReportForm(CustomForm): class Meta: model = models.Report - fields = ["reported_user", "user", "status", "links", "note"] + fields = ["reported_user", "user", "status", "links", "note", "allow_broadcast"] class ReadThroughForm(CustomForm): diff --git a/bookwyrm/templates/settings/reports/report_preview.html b/bookwyrm/templates/settings/reports/report_preview.html index 26afd273c..85eb2a100 100644 --- a/bookwyrm/templates/settings/reports/report_preview.html +++ b/bookwyrm/templates/settings/reports/report_preview.html @@ -23,6 +23,15 @@ +{% if not report.reported_user.local %} + +{% endif %} diff --git a/bookwyrm/templates/snippets/report_modal.html b/bookwyrm/templates/snippets/report_modal.html index c5d3987f5..67a2d8cc6 100644 --- a/bookwyrm/templates/snippets/report_modal.html +++ b/bookwyrm/templates/snippets/report_modal.html @@ -36,6 +36,15 @@ {% trans "Links from this domain will be removed until your report has been reviewed." %} {% endif %}

+ {% if not reported_user.local %} + + {% else %} + + {% endif %} +