Showing Report

<%= link_to_reported_thing(@report.reportable) %>

<%= render(PhilomenaWeb.UserAttributionView, "_anon_user_avatar.html", object: @report, conn: @conn) %>
<%= render(PhilomenaWeb.UserAttributionView, "_anon_user.html", object: @report, awards: true, conn: @conn) %>
<%= render(PhilomenaWeb.UserAttributionView, "_anon_user_title.html", object: @report, conn: @conn) %>
<%= @body %>
Reported <%= pretty_time(@report.created_at) %>
<%= link_to_ip(@conn, @report.ip) %> <%= link_to_fingerprint(@conn, @report.fingerprint) %>
User-Agent: <%= @report.user_agent %>
<%= if assigns[:mod_notes] do %>

Mod Notes

<%= render(PhilomenaWeb.Admin.ModNoteView, "_table.html", mod_notes: @mod_notes, conn: @conn) %> <%= link("Add New Note", to: ~p"/admin/mod_notes/new?#{[notable_id: @report.id, notable_type: "Report"]}") %> <% end %>

<%= if @report.user do %> <%= link("Send PM", to: ~p"/conversations/new?#{[recipient: @report.user.name]}", class: "button button--link") %> <% end %> <%= if @report.open do %> <%= link("Close", to: ~p"/admin/reports/#{@report}/close", class: "button", data: [method: "post"]) %> <%= if current?(@report.admin, @conn.assigns.current_user) do %> <%= link("Release", to: ~p"/admin/reports/#{@report}/claim", class: "button", data: [method: "delete"]) %> <% else %> <%= link("Claim", to: ~p"/admin/reports/#{@report}/claim", class: "button", data: [method: "post"]) %> <% end %> <% end %>

<%= link("Back", to: ~p"/admin/reports", class: "button button-link") %>