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 %>
|
2020-08-10 16:57:26 +02:00
|
|
|
<%= gettext "Event" %>
|
|
|
|
<%= @report.event.title %>
|
2019-09-24 12:09:43 +02:00
|
|
|
<% end %>
|
|
|
|
<%= if Map.has_key?(@report, :comments) && length(@report.comments) > 0 do %>
|
2020-08-10 16:57:26 +02:00
|
|
|
<%= gettext "Comments" %>
|
|
|
|
<%= for comment <- @report.comments do %>
|
|
|
|
<%= comment.text %>
|
|
|
|
<% end %>
|
2019-09-24 12:09:43 +02:00
|
|
|
<% end %>
|
|
|
|
<%= if @report.content do %>
|
2020-08-10 16:57:26 +02:00
|
|
|
<%= gettext "Reason" %>
|
|
|
|
<%= @report.content %>
|
2019-09-24 12:09:43 +02:00
|
|
|
<% end %>
|
2020-08-12 16:05:34 +02:00
|
|
|
<%= gettext "View report:" %> <%= page_url(Mobilizon.Web.Endpoint, :moderation_report, @report.id) %>
|