Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update templates

Neeraj Guptaf6dd35f5e73f
diff --git a/server/ente/user.go b/server/ente/user.go
index b5c436a11f..bb51403b34 100644
--- a/server/ente/user.go
+++ b/server/ente/user.go
@@ -31,7 +31,7 @@ type User struct {
type SendOTTRequest struct {
Email string `json:"email"`
Client string `json:"client"`
- Purpose string `json:"purpose"
+ Purpose string `json:"purpose"`
// Mobile indicates whether the request is coming from a mobile client`
Mobile bool `json:"mobile"`
}
diff --git a/server/mail-templates/ott.html b/server/mail-templates/ott.html
index 4b70e035bc..0c671a53c0 100644
--- a/server/mail-templates/ott.html
+++ b/server/mail-templates/ott.html
@@ -3,124 +3,124 @@
<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;
- }
-
+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 {
- 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;
+ max-width: auto;
}
.gutter {
- padding: 30px;
- }
-
- img {
- max-width: 100%;
- height: auto;
- }
-
- a {
- color: #0055d4;
- }
-
- a:hover {
- color: #111;
+ padding: 10px;
}
+}
- @media screen and (max-width: 600px) {
- .wrap {
- max-width: auto;
- }
-
- .gutter {
- padding: 10px;
- }
- }
-
- .footer-icons {
- padding: 4px !important;
- width: 24px !important;
- }
+.footer-icons {
+ padding: 4px !important;
+ width: 24px !important;
+}
</style>
<body>
-<div class="gutter" style="padding: 4px">&nbsp;</div>
-<div class="wrap" style="background-color: rgb(255, 255, 255); padding: 30px; max-width: 525px; margin: 0 auto; border-radius: 5px; font-size: 16px">
- <p style="text-align: center;">Enter this code to complete verification:</p>
- <center>
- <div style="background-color:#DEDEDE; border-radius:6px; color:#00b33c; display:inline-block; letter-spacing:4px; padding:12px 18px 12px 18px; text-align:center; font-size:24px; font-weight: bold;" target="_blank">{{.VerificationCode}}</div>
- </center>
- <hr style="margin-top: 24px; margin-bottom: 24px" />
- <p style="text-align: center; font-size: 14px;">Need help? Contact us at <a href="mailto:[email protected]" style=" color:#00b33c; display:inline-block">[email protected]</a>.</p></p>
-</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 class="gutter" style="padding: 4px">&nbsp;</div>
+ <div class="wrap" style="background-color: rgb(255, 255, 255); padding: 30px; max-width: 525px; margin: 0 auto; border-radius: 5px; font-size: 16px">
+ <p style="text-align: center;">Enter this code to complete verification:</p>
+ <center>
+ <div style="background-color:#DEDEDE; border-radius:6px; color:#00b33c; display:inline-block; letter-spacing:4px; padding:12px 18px 12px 18px; text-align:center; font-size:24px; font-weight: bold;" target="_blank">{{.VerificationCode}}</div>
+ </center>
+ <hr style="margin-top: 24px; margin-bottom: 24px" />
+ <p style="text-align: center; font-size: 14px;">Need help? Contact us at <a href="mailto:[email protected]" style=" color:#00b33c; display:inline-block">[email protected]</a>.</p></p>
</div>
- <p>
- Ente Technologies, Inc.
- <br />
- 1111B S Governors Ave 6032 Dover, DE 19904
- </p>
<br />
-</div>
+ <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>
\ No newline at end of file
diff --git a/server/mail-templates/ott_mobile.html b/server/mail-templates/ott_mobile.html
index 16557932c0..ab03f58fc7 100644
--- a/server/mail-templates/ott_mobile.html
+++ b/server/mail-templates/ott_mobile.html
@@ -134,7 +134,7 @@
margin-bottom: 32px;
"
>
- <p>β€” or enter the code manually β€”</p>
+ <p> or enter the code manually </p>
<center>
<div
style="