correction about Phoenix upgrade - #1814
This commit is contained in:
@@ -45,7 +45,8 @@
|
||||
>
|
||||
<p style="margin: 0;">
|
||||
{gettext(
|
||||
"Hi there! You just registered to join this event: « <b>%{title}</b> ». Please confirm the e-mail address you provided:",
|
||||
"Hi there! You just registered to join this event: « <b>%{title}</b>
|
||||
». Please confirm the e-mail address you provided:",
|
||||
title: escape_html(@participant.event.title)
|
||||
)
|
||||
|> raw}
|
||||
|
||||
@@ -187,8 +187,7 @@
|
||||
{gettext("<b>%{instance}</b> is powered by Mobilizon.",
|
||||
instance: @instance_name
|
||||
)
|
||||
|> raw}
|
||||
<br />
|
||||
|> raw} <br />
|
||||
<a href="https://mobilizon.org">
|
||||
{gettext("Learn more about Mobilizon here!")}
|
||||
</a>
|
||||
|
||||
@@ -48,7 +48,8 @@
|
||||
>
|
||||
<p style="margin: 0;">
|
||||
{gettext(
|
||||
"Your instance's moderation team has decided to suspend <b>%{group_name}</b> (%{group_address}). You are no longer a member of this group.",
|
||||
"Your instance's moderation team has decided to suspend <b>%{group_name}</b>
|
||||
(%{group_address}). You are no longer a member of this group.",
|
||||
group_name: escape_html(display_name(@group)),
|
||||
group_address: preferred_username_and_domain(@group)
|
||||
)
|
||||
|
||||
@@ -47,8 +47,7 @@
|
||||
{gettext("<b>%{name}</b> just requested to follow your instance.",
|
||||
name: escape_html(display_name_and_username(@follower))
|
||||
)
|
||||
|> raw}
|
||||
<br />
|
||||
|> raw} <br />
|
||||
<%= if @follower.type == :Application do %>
|
||||
{gettext("If you accept, this instance will receive all of your public events.")}
|
||||
<% else %>
|
||||
|
||||
@@ -45,7 +45,8 @@
|
||||
>
|
||||
<p style="margin: 0;">
|
||||
{gettext(
|
||||
"You created an account on <b>%{host}</b> with this email address. You are one click away from activating it.",
|
||||
"You created an account on <b>%{host}</b>
|
||||
with this email address. You are one click away from activating it.",
|
||||
host: @instance_name
|
||||
)
|
||||
|> raw}
|
||||
|
||||
@@ -6,7 +6,7 @@ defmodule Mobilizon.Web.AuthView do
|
||||
use Mobilizon.Web, :view
|
||||
alias Mobilizon.Service.Metadata.Instance
|
||||
alias Mobilizon.Web.PageView
|
||||
alias Phoenix.HTML.Tag
|
||||
alias PhoenixHTMLHelpers.Tag
|
||||
|
||||
@spec render(String.t(), map()) :: String.t() | Plug.Conn.t()
|
||||
def render(
|
||||
|
||||
@@ -3,10 +3,6 @@ defmodule Mobilizon.Web.ErrorHelpers do
|
||||
Conveniences for translating and building error messages.
|
||||
"""
|
||||
|
||||
import Phoenix.HTML
|
||||
import Phoenix.HTML.Form
|
||||
use PhoenixHTMLHelpers
|
||||
|
||||
@doc """
|
||||
Translates an error message using gettext.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user