mobilizon.chapril.org-mobil.../lib/web/templates/email/report.text.eex

30 lines
651 B
Elixir
Raw Normal View History

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