correct lint-elixir
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
style="padding: 40px 20px 20px 20px; border-radius: 4px 4px 0px 0px; color: #3A384C; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 48px; font-weight: 400; line-height: 48px;"
|
||||
>
|
||||
<h1 style="font-size: 48px; font-weight: 400; margin: 0;">
|
||||
<%= gettext("New report on <b>%{instance}</b>", instance: @instance_name) |> raw %>
|
||||
{gettext("New report on <b>%{instance}</b>", instance: @instance_name) |> raw}
|
||||
</h1>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -45,16 +45,16 @@
|
||||
>
|
||||
<p style="margin: 0;">
|
||||
<%= if @report.reporter.type == :Application and @report.reporter.preferred_username == "relay" do %>
|
||||
<%= gettext(
|
||||
{gettext(
|
||||
"Someone on <b>%{instance}</b> reported the following content for you to analyze:",
|
||||
instance: escape_html(@report.reporter.domain)
|
||||
)
|
||||
|> raw %>
|
||||
|> raw}
|
||||
<% else %>
|
||||
<%= gettext("<b>%{reporter}</b> reported the following content.",
|
||||
{gettext("<b>%{reporter}</b> reported the following content.",
|
||||
reporter: escape_html(display_name_and_username(@report.reporter))
|
||||
)
|
||||
|> raw %>
|
||||
|> raw}
|
||||
<% end %>
|
||||
</p>
|
||||
</td>
|
||||
@@ -68,18 +68,18 @@
|
||||
>
|
||||
<p style="margin: 0;">
|
||||
<%= if @report.reported.type == :Group do %>
|
||||
<h3><%= gettext("Group reported") %></h3>
|
||||
<h3>{gettext("Group reported")}</h3>
|
||||
<a
|
||||
href={
|
||||
"#{"#{Mobilizon.Web.Endpoint.url()}/@#{Mobilizon.Actors.Actor.preferred_username_and_domain(@report.reported)}"}"
|
||||
}
|
||||
target="_blank"
|
||||
>
|
||||
<b><%= Mobilizon.Actors.Actor.display_name_and_username(@report.reported) %></b>
|
||||
<b>{Mobilizon.Actors.Actor.display_name_and_username(@report.reported)}</b>
|
||||
</a>
|
||||
<% else %>
|
||||
<h3><%= gettext("Profile reported") %></h3>
|
||||
<b><%= Mobilizon.Actors.Actor.display_name_and_username(@report.reported) %></b>
|
||||
<h3>{gettext("Profile reported")}</h3>
|
||||
<b>{Mobilizon.Actors.Actor.display_name_and_username(@report.reported)}</b>
|
||||
<% end %>
|
||||
</p>
|
||||
<table
|
||||
@@ -112,17 +112,17 @@
|
||||
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
|
||||
>
|
||||
<p style="margin: 0;">
|
||||
<h3><%= gettext("Flagged events") %></h3>
|
||||
<h3>{gettext("Flagged events")}</h3>
|
||||
<%= for event <- @report.events do %>
|
||||
<a
|
||||
href={"#{"#{Mobilizon.Web.Endpoint.url()}/events/#{event.uuid}"}"}
|
||||
target="_blank"
|
||||
>
|
||||
<%= gettext("%{title} by %{creator}",
|
||||
{gettext("%{title} by %{creator}",
|
||||
title: event.title,
|
||||
creator:
|
||||
Mobilizon.Actors.Actor.preferred_username_and_domain(@report.reported)
|
||||
) %>
|
||||
)}
|
||||
</a>
|
||||
<% end %>
|
||||
</p>
|
||||
@@ -155,10 +155,10 @@
|
||||
align="left"
|
||||
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
|
||||
>
|
||||
<h3><%= gettext("Flagged comments") %></h3>
|
||||
<h3>{gettext("Flagged comments")}</h3>
|
||||
<%= for comment <- @report.comments do %>
|
||||
<p style="margin: 0;">
|
||||
<%= Mobilizon.Service.Formatter.HTML.strip_tags(comment.text) %>
|
||||
{Mobilizon.Service.Formatter.HTML.strip_tags(comment.text)}
|
||||
</p>
|
||||
<% end %>
|
||||
<table
|
||||
@@ -191,8 +191,8 @@
|
||||
style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;"
|
||||
>
|
||||
<p style="margin: 0">
|
||||
<h3><%= gettext("Reasons for report") %></h3>
|
||||
<%= @report.content %>
|
||||
<h3>{gettext("Reasons for report")}</h3>
|
||||
{@report.content}
|
||||
</p>
|
||||
<table
|
||||
cellspacing="0"
|
||||
@@ -232,7 +232,7 @@
|
||||
target="_blank"
|
||||
style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;"
|
||||
>
|
||||
<%= gettext("View report") %>
|
||||
{gettext("View report")}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user