refactor: use dedicated email for event announcements

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-11-21 15:28:56 +01:00
parent 18314956ca
commit b97f1c997f
9 changed files with 431 additions and 1711 deletions

View File

@@ -113,9 +113,7 @@
event:
"<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint,
:event,
@activity.subject_params["conversation_event_uuid"]) |> URI.decode()}\">
#{escape_html(@activity.subject_params["conversation_event_title"])}
</a>"
@activity.subject_params["conversation_event_uuid"]) |> URI.decode()}\">#{escape_html(@activity.subject_params["conversation_event_title"])}</a>"
}
)
|> raw %>
@@ -137,7 +135,7 @@
<tr>
<td align="center">
<blockquote style="border-left-width: 0.25rem;border-left-color: #e2e8f0;border-left-style: solid;padding-left: 1em;margin: 0;text-align: start;color: #474467;font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 400;line-height: 25px;">
<%= @extra["conversation"].last_comment.text
<%= @activity.subject_params["conversation_text"]
|> sanitize_to_basic_html()
|> raw() %>
</blockquote>

View File

@@ -21,7 +21,7 @@
--
<%= @extra["conversation"].last_comment.text |> html_to_text() |> mail_quote() %>
<%= @activity.subject_params["conversation_text"] |> html_to_text() |> mail_quote() %>
--