Rename MobilizonWeb to Mobilizon.Web
This commit is contained in:
29
lib/web/templates/email/report.text.eex
Normal file
29
lib/web/templates/email/report.text.eex
Normal file
@@ -0,0 +1,29 @@
|
||||
<%= 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 %>
|
||||
|
||||
|
||||
View the report: <%= moderation_report_url(Mobilizon.Web.Endpoint, :index, @report.id) %>
|
||||
|
||||
Reference in New Issue
Block a user