Skip to content

Commit a9edd7b

Browse files
authored
feat: update email templates presentation (#588)
* add admin app filters * update email templates
1 parent b00885e commit a9edd7b

File tree

5 files changed

+545
-374
lines changed

5 files changed

+545
-374
lines changed

app/helpers/email.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ def async_mail(app, message):
1010
mail.send(message)
1111

1212

13-
def send_email(to : str or list, subject, template, sender, app):
13+
def send_email(to: str or list, subject, template, sender, app):
1414
msg = Message(
1515
f'[Crane Cloud] {subject}',
16-
recipients = [to] if type(to) == str else [receipient for receipient in to],
16+
recipients=[to] if type(to) == str else [
17+
receipient for receipient in to],
1718
html=template,
1819
sender=sender,
1920
)

templates/user/footer.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<tr>
2+
<td class="footer">
3+
<p style="margin-bottom: 16px">Follow us on social media:</p>
4+
<div class="social-links">
5+
<a href="https://github.com/crane-cloud" style="color: #3b82f6">GitHub</a>
6+
7+
<a href="https://twitter.com/cranecloud" style="color: #3b82f6"
8+
>Twitter</a
9+
>
10+
11+
<a href="https://linkedin.com/company/cranecloud" style="color: #3b82f6"
12+
>LinkedIn</a
13+
>
14+
</div>
15+
<p style="margin: 20px 0 0; font-size: 12px">
16+
© 2024 Crane Cloud. All rights reserved.<br />
17+
<a href="https://cranecloud.io/privacy" style="color: #718096"
18+
>Privacy Policy</a
19+
>
20+
21+
<a href="https://cranecloud.io/terms" style="color: #718096"
22+
>Terms of Service</a
23+
>
24+
</p>
25+
</td>
26+
</tr>
27+
28+
<style type="text/css">
29+
/* Footer Styles */
30+
.footer {
31+
padding: 24px 30px;
32+
background: #f8fafc;
33+
border-radius: 0 0 8px 8px;
34+
text-align: center;
35+
color: #718096;
36+
font-size: 14px;
37+
}
38+
39+
.social-links a {
40+
margin: 0 8px;
41+
text-decoration: none;
42+
color: #3b82f6;
43+
transition: opacity 0.3s ease;
44+
}
45+
46+
.social-links a:hover {
47+
opacity: 0.8;
48+
}
49+
</style>

0 commit comments

Comments
 (0)