add emails
This commit is contained in:
24
lib/lokal_web/templates/layout/email.html.heex
Normal file
24
lib/lokal_web/templates/layout/email.html.heex
Normal file
@ -0,0 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
<%= @email.subject %>
|
||||
</title>
|
||||
</head>
|
||||
<body
|
||||
style="padding: 2em; color: rgb(31, 31, 31); background-color: rgb(220, 220, 228); font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; text-align: center;"
|
||||
>
|
||||
<%= @inner_content %>
|
||||
|
||||
<hr
|
||||
style="margin: 2em auto; border-width: 1px; border-color: rgb(212, 212, 216); width: 100%; max-width: 42rem;"
|
||||
/>
|
||||
|
||||
<a style="color: rgb(31, 31, 31);" href={Routes.live_url(Endpoint, PageLive)}>
|
||||
<%= dgettext(
|
||||
"emails",
|
||||
"This email was sent from %{name}, the self-hosted firearm tracker website.",
|
||||
name: "Lokal"
|
||||
) %>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
12
lib/lokal_web/templates/layout/email.txt.eex
Normal file
12
lib/lokal_web/templates/layout/email.txt.eex
Normal file
@ -0,0 +1,12 @@
|
||||
<%= @email.subject %>
|
||||
|
||||
====================
|
||||
|
||||
<%= @inner_content %>
|
||||
|
||||
=====================
|
||||
|
||||
<%= dgettext("emails",
|
||||
"This email was sent from %{name} at %{url}, the self-hosted firearm tracker website.",
|
||||
name: "Lokal",
|
||||
url: Routes.live_url(Endpoint, PageLive)) %>
|
1
lib/lokal_web/templates/layout/empty.html.heex
Normal file
1
lib/lokal_web/templates/layout/empty.html.heex
Normal file
@ -0,0 +1 @@
|
||||
<%= @inner_content %>
|
Reference in New Issue
Block a user