2019-12-08 18:45:37 +01:00
|
|
|
h1 Showing Report
|
|
|
|
p
|
2024-04-29 03:08:00 +02:00
|
|
|
= link_to_reported_thing @report.reportable
|
2019-12-08 18:45:37 +01:00
|
|
|
|
|
|
|
article.block.communication
|
|
|
|
.block__content.flex.flex--no-wrap
|
|
|
|
.flex__fixed.spacing-right
|
|
|
|
= render PhilomenaWeb.UserAttributionView, "_anon_user_avatar.html", object: @report, conn: @conn
|
|
|
|
.flex__grow.communication__body
|
|
|
|
span.communication__body__sender-name = render PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @report, awards: true, conn: @conn
|
|
|
|
br
|
|
|
|
= render PhilomenaWeb.UserAttributionView, "_anon_user_title.html", object: @report, conn: @conn
|
|
|
|
.communication__body__text
|
2024-05-04 05:15:14 +02:00
|
|
|
=<> @body
|
2019-12-08 18:45:37 +01:00
|
|
|
|
|
|
|
.block__content.communication__options
|
|
|
|
.flex.flex--wrap.flex--spaced-out
|
|
|
|
div
|
|
|
|
' Reported
|
|
|
|
= pretty_time @report.created_at
|
|
|
|
|
|
|
|
.flex__right
|
|
|
|
=> link_to_ip @conn, @report.ip
|
|
|
|
=> link_to_fingerprint @conn, @report.fingerprint
|
|
|
|
|
|
|
|
div
|
|
|
|
' User-Agent:
|
|
|
|
code
|
|
|
|
= @report.user_agent
|
|
|
|
|
2019-12-17 18:29:18 +01:00
|
|
|
= if assigns[:mod_notes] do
|
|
|
|
h4 Mod Notes
|
|
|
|
= render PhilomenaWeb.Admin.ModNoteView, "_table.html", mod_notes: @mod_notes, conn: @conn
|
2024-04-29 02:55:27 +02:00
|
|
|
= link "Add New Note", to: ~p"/admin/mod_notes/new?#{[notable_id: @report.id, notable_type: "Report"]}"
|
2019-12-17 18:29:18 +01:00
|
|
|
|
2019-12-08 18:45:37 +01:00
|
|
|
p
|
|
|
|
= if @report.user do
|
2024-04-29 02:55:27 +02:00
|
|
|
=> link "Send PM", to: ~p"/conversations/new?#{[recipient: @report.user.name]}", class: "button button--link"
|
2019-12-08 18:45:37 +01:00
|
|
|
|
|
|
|
= if @report.open do
|
2024-04-29 02:55:27 +02:00
|
|
|
=> link "Close", to: ~p"/admin/reports/#{@report}/close", class: "button", data: [method: "post"]
|
2019-12-08 18:45:37 +01:00
|
|
|
|
|
|
|
= if current?(@report.admin, @conn.assigns.current_user) do
|
2024-04-29 02:55:27 +02:00
|
|
|
=> link "Release", to: ~p"/admin/reports/#{@report}/claim", class: "button", data: [method: "delete"]
|
2019-12-08 18:45:37 +01:00
|
|
|
- else
|
2024-04-29 02:55:27 +02:00
|
|
|
=> link "Claim", to: ~p"/admin/reports/#{@report}/claim", class: "button", data: [method: "post"]
|
2019-12-08 18:45:37 +01:00
|
|
|
|
2024-04-29 02:55:27 +02:00
|
|
|
= link "Back", to: ~p"/admin/reports", class: "button button-link"
|