correction about Phoenix upgrade - #1814

This commit is contained in:
Laurent GAY
2025-11-22 10:18:37 +01:00
committed by setop
parent 9d0b54a679
commit dc413e3800
20 changed files with 30 additions and 35 deletions

View File

@@ -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}

View File

@@ -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>

View File

@@ -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)
)

View File

@@ -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 %>

View File

@@ -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}

View File

@@ -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(

View File

@@ -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.
"""