2019-09-24 12:09:43 +02:00
|
|
|
<%= gettext "New report from %{reporter} on %{instance}", reporter: @report.reporter.preferred_username, instance: @instance[:name] %>
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
<%= if Map.has_key?(@report, :event) do %>
|
|
|
|
<%= gettext "Event" %>
|
2019-12-03 11:29:51 +01:00
|
|
|
|
2019-09-24 12:09:43 +02:00
|
|
|
<%= @report.event.title %>
|
|
|
|
<% end %>
|
|
|
|
|
2019-12-03 11:29:51 +01:00
|
|
|
|
2019-09-24 12:09:43 +02:00
|
|
|
<%= if Map.has_key?(@report, :comments) && length(@report.comments) > 0 do %>
|
|
|
|
<%= gettext "Comments" %>
|
2019-12-03 11:29:51 +01:00
|
|
|
|
2019-09-24 12:09:43 +02:00
|
|
|
<%= for comment <- @report.comments do %>
|
|
|
|
<%= comment.text %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
2019-12-03 11:29:51 +01:00
|
|
|
|
2019-09-24 12:09:43 +02:00
|
|
|
<%= if @report.content do %>
|
|
|
|
<%= gettext "Reason" %>
|
2019-12-03 11:29:51 +01:00
|
|
|
|
2019-09-24 12:09:43 +02:00
|
|
|
<%= @report.content %>
|
|
|
|
<% end %>
|
|
|
|
|
2019-12-03 11:29:51 +01:00
|
|
|
|
2020-01-26 21:36:50 +01:00
|
|
|
View the report: <%= moderation_report_url(Mobilizon.Web.Endpoint, :index, @report.id) %>
|
2019-09-24 12:09:43 +02:00
|
|
|
|