Skip to content

Commit 4d4aae4

Browse files
committed
e-mail tweaks
1 parent c2ef9b7 commit 4d4aae4

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

backend/donations/views/redirections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def post(self, request, ngo_url):
237237
donor_email_context.update(
238238
{
239239
"ngo_url": request.build_absolute_uri(reverse("twopercent", kwargs={"ngo_url": ngo_url})),
240+
"ngo_name": ngo.name,
240241
}
241242
)
242243

@@ -265,7 +266,6 @@ def post(self, request, ngo_url):
265266

266267
donor_email_context.update(
267268
{
268-
"ngo_name": ngo.name,
269269
"ngo_address": ngo_address,
270270
"ngo_email": ngo.email,
271271
}

backend/redirectioneaza/common/messaging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
def extend_email_context(request: HttpRequest = None) -> Dict:
1818
return {
19+
"contact_email": settings.CONTACT_EMAIL_ADDRESS,
1920
"logo_code4romania": build_uri(static("images/code4romania.png"), request),
2021
"logo_instagram": build_uri(static("images/social-icons/instagram.png"), request),
2122
"logo_facebook": build_uri(static("images/social-icons/facebook.png"), request),

backend/templates/v2/emails/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
88
<meta name="color-scheme" content="light">
99
<meta name="supported-color-schemes" content="light">
10-
<style>
10+
<style type="text/css">
1111
{% include "emails/styles.css" %}
1212

1313
@media only screen and (max-width: 600px) {

backend/templates/v2/emails/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ img {
241241
/* text-align: center; */
242242
.button {
243243
-webkit-text-size-adjust: none;
244-
border-radius: 4px;
245244
color: #fff;
246245
display: inline-block;
247246
overflow: hidden;

0 commit comments

Comments
 (0)