summaryrefslogtreecommitdiffstats
path: root/app/views/admin
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-11-15 15:18:43 +0100
committerGitHub <noreply@github.com>2023-11-15 14:18:43 +0000
commitbd575a1dd69d87ca0f69873f7badf28d38e8b9ed (patch)
tree467bb898bc099defa18033c950a4ed52e2e44323 /app/views/admin
parent12a5b7391d0298a99b94386538fe4ca625cea7e9 (diff)
Add banner for forwarded reports made by remote users about remote content (#27549)
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/reports/_header_details.html.haml2
-rw-r--r--app/views/admin/reports/show.html.haml3
2 files changed, 4 insertions, 1 deletions
diff --git a/app/views/admin/reports/_header_details.html.haml b/app/views/admin/reports/_header_details.html.haml
index 5878cd2ff8a..45790b9cd50 100644
--- a/app/views/admin/reports/_header_details.html.haml
+++ b/app/views/admin/reports/_header_details.html.haml
@@ -22,7 +22,7 @@
= t('admin.reports.resolved')
- else
= t('admin.reports.unresolved')
- - unless report.target_account.local?
+ - if report.account.local? && !report.target_account.local?
.report-header__details__item
.report-header__details__item__header
%strong= t('admin.reports.forwarded')
diff --git a/app/views/admin/reports/show.html.haml b/app/views/admin/reports/show.html.haml
index 13a4d48344d..4376e5af4d7 100644
--- a/app/views/admin/reports/show.html.haml
+++ b/app/views/admin/reports/show.html.haml
@@ -7,6 +7,9 @@
- else
= link_to t('admin.reports.mark_as_unresolved'), reopen_admin_report_path(@report), method: :post, class: 'button'
+- unless @report.account.local? || @report.target_account.local?
+ .flash-message= t('admin.reports.forwarded_replies_explanation')
+
.report-header
= render 'admin/reports/header_card', report: @report
= render 'admin/reports/header_details', report: @report