add swoosh and oban
This commit is contained in:
12
lib/cannery_web/templates/email/confirm_email.html.eex
Normal file
12
lib/cannery_web/templates/email/confirm_email.html.eex
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
<%= dgettext("emails", "Hi %{email},", email: @user.email) %>
|
||||
|
||||
<%= dgettext("emails", "Welcome to %{name}!", name: "Cannery") %>
|
||||
|
||||
<%= dgettext("emails", "You can confirm your account by visiting the URL below:") %>
|
||||
|
||||
<%= @url %>
|
||||
|
||||
<%= dgettext("emails",
|
||||
"If you didn't create an account at %{url}, please ignore this.",
|
||||
url: Routes.live_url(Endpoint, HomeLive)) %>
|
12
lib/cannery_web/templates/email/confirm_email.txt.eex
Normal file
12
lib/cannery_web/templates/email/confirm_email.txt.eex
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
<%= dgettext("emails", "Hi %{email},", email: @user.email) %>
|
||||
|
||||
<%= dgettext("emails", "Welcome to %{name}%!", name: "Cannery") %>
|
||||
|
||||
<%= dgettext("emails", "You can confirm your account by visiting the URL below:") %>
|
||||
|
||||
<%= @url %>
|
||||
|
||||
<%= dgettext("emails",
|
||||
"If you didn't create an account at %{url}, please ignore this.",
|
||||
url: Routes.live_url(Endpoint, HomeLive)) %>
|
10
lib/cannery_web/templates/email/reset_password.html.eex
Normal file
10
lib/cannery_web/templates/email/reset_password.html.eex
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
<%= dgettext("emails", "Hi %{email},", email: @user.email) %>
|
||||
|
||||
<%= dgettext("emails", "You can reset your password by visiting the URL below:") %>
|
||||
|
||||
<%= @url %>
|
||||
|
||||
<%= dgettext("emails",
|
||||
"If you didn't request this change from %{url}, please ignore this.",
|
||||
url: Routes.live_url(Endpoint, HomeLive)) %>
|
10
lib/cannery_web/templates/email/reset_password.txt.eex
Normal file
10
lib/cannery_web/templates/email/reset_password.txt.eex
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
<%= dgettext("emails", "Hi %{email},", email: @user.email) %>
|
||||
|
||||
<%= dgettext("emails", "You can reset your password by visiting the URL below:") %>
|
||||
|
||||
<%= @url %>
|
||||
|
||||
<%= dgettext("emails",
|
||||
"If you didn't request this change from %{url}, please ignore this.",
|
||||
url: Routes.live_url(Endpoint, HomeLive)) %>
|
10
lib/cannery_web/templates/email/update_email.html.eex
Normal file
10
lib/cannery_web/templates/email/update_email.html.eex
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
<%= dgettext("emails", "Hi %{email},", email: @user.email) %>
|
||||
|
||||
<%= dgettext("emails", "You can change your email by visiting the URL below:") %>
|
||||
|
||||
<%= @url %>
|
||||
|
||||
<%= dgettext("emails",
|
||||
"If you didn't request this change from %{url}, please ignore this.",
|
||||
url: Routes.live_url(Endpoint, HomeLive)) %>
|
10
lib/cannery_web/templates/email/update_email.txt.eex
Normal file
10
lib/cannery_web/templates/email/update_email.txt.eex
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
<%= dgettext("emails", "Hi %{email},", email: @user.email) %>
|
||||
|
||||
<%= dgettext("emails", "You can change your email by visiting the URL below:") %>
|
||||
|
||||
<%= @url %>
|
||||
|
||||
<%= dgettext("emails",
|
||||
"If you didn't request this change from %{url}, please ignore this.",
|
||||
url: Routes.live_url(Endpoint, HomeLive)) %>
|
16
lib/cannery_web/templates/layout/email.html.heex
Normal file
16
lib/cannery_web/templates/layout/email.html.heex
Normal file
@ -0,0 +1,16 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
<%= @email.subject %>
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
<%= @inner_content %>
|
||||
|
||||
<hr style="border-width: 1px; border-color: rgb(212, 212, 216); width: 100%; max-width: 42rem;">
|
||||
|
||||
<a href={Routes.live_url(Endpoint, HomeLive)}>
|
||||
<%= dgettext("emails", "This email was sent from %{name}", name: "Cannery") %>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
13
lib/cannery_web/templates/layout/email.txt.eex
Normal file
13
lib/cannery_web/templates/layout/email.txt.eex
Normal file
@ -0,0 +1,13 @@
|
||||
<%= @email.subject %>
|
||||
|
||||
|
||||
====================
|
||||
|
||||
<%= @inner_content %>
|
||||
|
||||
=====================
|
||||
|
||||
<%= dgettext("emails",
|
||||
"This email was sent from %{name} at %{url}",
|
||||
name: "Cannery",
|
||||
url: Routes.live_url(Endpoint, HomeLive)) %>
|
Reference in New Issue
Block a user