Add offer_unsupscription parameter to emails
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -20,6 +20,7 @@ defmodule Mobilizon.Web.Email do
|
||||
|> maybe_put_message_id()
|
||||
|> assign(:jsonLDMetadata, nil)
|
||||
|> assign(:instance_name, Config.instance_name())
|
||||
|> assign(:offer_unsupscription, true)
|
||||
|> put_html_layout({EmailView, "email.html"})
|
||||
|> put_text_layout({EmailView, "email.text"})
|
||||
end
|
||||
|
||||
@@ -34,6 +34,7 @@ defmodule Mobilizon.Web.Email.User do
|
||||
|> assign(:locale, locale)
|
||||
|> assign(:token, confirmation_token)
|
||||
|> assign(:subject, subject)
|
||||
|> assign(:offer_unsupscription, false)
|
||||
|> render(:registration_confirmation)
|
||||
end
|
||||
|
||||
@@ -54,6 +55,7 @@ defmodule Mobilizon.Web.Email.User do
|
||||
|> assign(:locale, locale)
|
||||
|> assign(:token, reset_password_token)
|
||||
|> assign(:subject, subject)
|
||||
|> assign(:offer_unsupscription, false)
|
||||
|> render(:password_reset)
|
||||
end
|
||||
|
||||
@@ -161,6 +163,7 @@ defmodule Mobilizon.Web.Email.User do
|
||||
|> assign(:locale, user_locale)
|
||||
|> assign(:subject, subject)
|
||||
|> assign(:new_email, unconfirmed_email)
|
||||
|> assign(:offer_unsupscription, false)
|
||||
|> render(:email_changed_old)
|
||||
end
|
||||
|
||||
@@ -181,6 +184,7 @@ defmodule Mobilizon.Web.Email.User do
|
||||
|> assign(:locale, user_locale)
|
||||
|> assign(:subject, subject)
|
||||
|> assign(:token, confirmation_token)
|
||||
|> assign(:offer_unsupscription, false)
|
||||
|> render(:email_changed_new)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user