-
-
Notifications
You must be signed in to change notification settings - Fork 877
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[server] Send emails for legacy (#4391)
## Description ## Tests
- Loading branch information
Showing
27 changed files
with
665 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
{{define "legacy_base"}} | ||
<!DOCTYPE html> | ||
<html> | ||
<meta content="text/html; charset=utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, | ||
minimum-scale=1" /> | ||
<style> | ||
body { | ||
background-color: #f0f1f3; | ||
font-family: "Helvetica Neue", "Segoe UI", Helvetica, sans-serif; | ||
font-size: 16px; | ||
line-height: 27px; | ||
margin: 0; | ||
color: #444; | ||
} | ||
|
||
pre { | ||
background: #f4f4f4f4; | ||
padding: 2px; | ||
} | ||
|
||
table { | ||
width: 100%; | ||
border: 1px solid #ddd; | ||
} | ||
|
||
table td { | ||
border-color: #ddd; | ||
padding: 5px; | ||
} | ||
|
||
.wrap { | ||
background-color: #fff; | ||
padding: 30px; | ||
max-width: 525px; | ||
margin: 0 auto; | ||
border-radius: 5px; | ||
} | ||
|
||
.button { | ||
background: #0055d4; | ||
border-radius: 3px; | ||
text-decoration: none !important; | ||
color: #fff !important; | ||
font-weight: bold; | ||
padding: 10px 30px; | ||
display: inline-block; | ||
} | ||
|
||
.button:hover { | ||
background: #111; | ||
} | ||
|
||
.footer { | ||
text-align: center; | ||
font-size: 12px; | ||
color: #888; | ||
} | ||
|
||
.footer a { | ||
color: #888; | ||
margin-right: 5px; | ||
} | ||
|
||
.gutter { | ||
padding: 30px; | ||
} | ||
|
||
img { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
|
||
a { | ||
color: #0055d4; | ||
} | ||
|
||
a:hover { | ||
color: #111; | ||
} | ||
|
||
@media screen and (max-width: 600px) { | ||
.wrap { | ||
max-width: auto; | ||
} | ||
|
||
.gutter { | ||
padding: 10px; | ||
} | ||
} | ||
|
||
.footer-icons { | ||
padding: 4px !important; | ||
width: 24px !important; | ||
} | ||
</style> | ||
|
||
<body> | ||
<div class="gutter" style="padding: 4px"> </div> | ||
<div class="wrap" style=" background-color: rgb(255, 255, 255); padding: 2px | ||
30px 30px 30px; max-width: 525px; margin: 0 auto; border-radius: 5px; | ||
font-size: 16px; " > | ||
<main> | ||
{{block "content" .}} Default Content {{end}} | ||
</main> | ||
</div> | ||
<br /> | ||
<div class="footer" style="text-align: center; font-size: 12px; color: | ||
rgb(136, 136, 136)" > | ||
<div> | ||
<a href="https://ente.io" target="_blank" ><img | ||
src="https://email-assets.ente.io/ente-green.png" style="width: 100px; | ||
padding: 24px" title="Ente" alt="Ente" /></a> | ||
</div> | ||
<div> | ||
<a href="https://fosstodon.org/@ente" target="_blank" ><img | ||
src="https://email-assets.ente.io/mastodon-icon.png" | ||
class="footer-icons" style="width: 24px; padding: 4px" title="Mastodon" | ||
alt="Mastodon" /></a> | ||
<a href="https://twitter.com/enteio" target="_blank" ><img | ||
src="https://email-assets.ente.io/twitter-icon.png" class="footer-icons" | ||
style="width: 24px; padding: 4px" title="Twitter" alt="Twitter" /></a> | ||
<a href="https://discord.ente.io" target="_blank" ><img | ||
src="https://email-assets.ente.io/discord-icon.png" class="footer-icons" | ||
style="width: 24px; padding: 4px" title="Discord" alt="Discord" /></a> | ||
<a href="https://github.com/ente-io" target="_blank" ><img | ||
src="https://email-assets.ente.io/github-icon.png" class="footer-icons" | ||
style="width: 24px; padding: 4px" title="GitHub" alt="GitHub" /></a> | ||
</div> | ||
<p> | ||
Ente Technologies, Inc. | ||
<br /> 1111B S Governors Ave 6032 Dover, DE 19904 | ||
</p> | ||
<br /> | ||
</div> | ||
</body> | ||
</html> | ||
{{end}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.LegacyContact}}</strong> has invited you to be their trusted contact. </p> | ||
|
||
<p>As a trusted contact, you can recover {{.LegacyContact}}'s account in their absence.</p> | ||
<p>To accept the invite, please open the Ente Photos app, and navigate to <strong>Settings > Account > Legacy</strong>.</p> | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.TrustedContact}}</strong> has accepted your request to be your trusted contact. </p> | ||
|
||
<p>As a trusted contact, {{.TrustedContact}} can recover your account in your absence.</p> | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.TrustedContact}}</strong> has rejected your request to be a trusted contact. </p> | ||
|
||
<p>If you need help, please reply to this email</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p>You have invited <strong>{{.TrustedContact}}</strong> to be your trusted contact. </p> | ||
|
||
<p> As a trusted contact, {{.TrustedContact}} can recover your account in your absence. </p> | ||
<p>If you want to cancel the invite, please navigate to <strong>Settings -> Account -> Legacy </strong> in the Ente Photos app. </p> | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.TrustedContact}}</strong> has removed themselves from being your trusted contact.</p> | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.LegacyContact}}</strong> has removed you as their trusted contact.</p> | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.TrustedUser}}</strong> has cancelled the process of recovering your account.</p> | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.TrustedContact}}</strong> has changed the password and can now access your account. | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p>You can now access <strong>{{.LegacyContact}}'s</strong> account with the new password you setup on Ente.</p> | ||
|
||
<p>If you need any help, please let us know by responding to this email, we'll be around.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.TrustedContact}}</strong> can now recover your account by changing the password. | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p>You can now recover <strong>{{.LegacyContact}}'s</strong> account. </p> | ||
<p>To change the password to <strong>{{.LegacyContact}}'s</strong> account, please navigate to <strong>Settings > Account > Legacy </strong> in the Ente Photos app. </p> | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.LegacyContact}}</strong> has blocked your request to recover their account.</p> | ||
|
||
<p>If you need help, please reply to this email</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.TrustedContact}}</strong> has initiated recovery on your account. After 2 days, they will be able to change the password and access your account. </p> | ||
|
||
<p>If you want to block the recovery, please navigate to <strong>Settings > Account > Legacy </strong> in the Ente Photos app.</p> | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{define "content"}} | ||
<p>Hello,</p> | ||
|
||
<p><strong>{{.TrustedContact}}</strong> has initiated recovery on your account. After 30 days, they will be able to change the password and access your account.</p> | ||
|
||
<p>If you want to block the recovery, please navigate to <strong>Settings > Account > Legacy </strong> in the Ente Photos app.</p> | ||
|
||
<p>If you need help, please reply to this email.</p> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.