Skip to content

Commit 655b86d

Browse files
committed
Remove G2P logo from emails
1 parent d02eb28 commit 655b86d

9 files changed

Lines changed: 4 additions & 49 deletions

File tree

gene2phenotype_project/gene2phenotype_app/templates/gene2phenotype_app/change_password_email.tpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Hi {{ user }},
88
<p>The password to the account <strong> {{ email }} </strong> has been changed successfully </p>
99
<p>If you do not recognize this action please contact the G2P team at <a href="mailto:g2p-help@ebi.ac.uk">g2p-help@ebi.ac.uk</a>.</p>
1010
<footer>
11-
<p>The G2P team</p>
12-
<img src="cid:g2p_logo" alt="G2P Logo" width="72" height="72" style="width:72px;height:72px;" />
11+
<p>The G2P team</p>
1312
</footer>
1413
{% endblock %}

gene2phenotype_project/gene2phenotype_app/templates/gene2phenotype_app/confidence_change_email.tpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Hi,
1515
</p>
1616

1717
<footer>
18-
<p>The G2P team</p>
19-
<img src="cid:g2p_logo" alt="G2P Logo" width="72" height="72" style="width:72px;height:72px;" />
18+
<p>The G2P team</p>
2019
</footer>
2120
{% endblock %}

gene2phenotype_project/gene2phenotype_app/templates/gene2phenotype_app/create_user_email.tpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Account Created: Welcome to G2P, {{ first_name }} {{ last_name }},
1818

1919
<p>Thank you for using G2P</p>
2020
<footer>
21-
<p>The G2P team</p>
22-
<img src="cid:g2p_logo" alt="G2P Logo" width="72" height="72" style="width:72px;height:72px;" />
21+
<p>The G2P team</p>
2322
</footer>
2423
{% endblock %}

gene2phenotype_project/gene2phenotype_app/templates/gene2phenotype_app/password_reset_email.tpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Hi {{ user }},
1010
<p> If you think you received this email in error, please contact the G2P team at <a href="mailto:g2p-help@ebi.ac.uk">g2p-help@ebi.ac.uk</a>.</p>
1111
<p>Thank you</p>
1212
<footer>
13-
<p>The G2P team</p>
14-
<img src="cid:g2p_logo" alt="G2P Logo" width="72" height="72" style="width:72px;height:72px;" />
13+
<p>The G2P team</p>
1514
</footer>
1615
{% endblock %}

gene2phenotype_project/gene2phenotype_app/utils/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from .phenotype_utils import validate_phenotype
1212
from .user_utils import CustomMail
1313
from .url_utils import build_public_url
14-
from .mail_utils import attach_g2p_logo
1514
from .date_utils import get_date_now
1615
from .curationinfo_utils import ConfidenceCustomMail
1716
from .lgd_utils import (

gene2phenotype_project/gene2phenotype_app/utils/curationinfo_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from django.template.loader import render_to_string
55
from typing import Dict, Any
66
from .url_utils import build_public_url
7-
from .mail_utils import attach_g2p_logo
87

98

109
class ConfidenceCustomMail:
@@ -55,7 +54,6 @@ def send_confidence_update_email(self) -> None:
5554
message["To"] = settings.MAILING_LIST
5655
message["Subject"] = self.get_email_subject()
5756
message.set_content(email_body, "html")
58-
attach_g2p_logo(message)
5957

6058
try:
6159
with SMTP(host=settings.EMAIL_HOST, port=settings.EMAIL_PORT) as server:

gene2phenotype_project/gene2phenotype_app/utils/mail_utils.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

gene2phenotype_project/gene2phenotype_app/utils/user_utils.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from django.conf import settings
44
from django.template.loader import render_to_string
55

6-
from .mail_utils import attach_g2p_logo
7-
86

97
class CustomMail:
108
@staticmethod
@@ -18,7 +16,6 @@ def send_reset_email(user, subject, reset_link, to_email):
1816
message["To"] = to_email
1917
message["Subject"] = subject
2018
message.set_content(email_body, "html")
21-
attach_g2p_logo(message)
2219
try:
2320
with SMTP(host=settings.EMAIL_HOST, port=settings.EMAIL_PORT) as server:
2421
server.send_message(message)
@@ -43,7 +40,6 @@ def send_create_email(data, verify_link, panel, subject, to_email):
4340
message["To"] = to_email
4441
message["Subject"] = subject
4542
message.set_content(email_body, "html")
46-
attach_g2p_logo(message)
4743

4844
try:
4945
with SMTP(host=settings.EMAIL_HOST, port=settings.EMAIL_PORT) as server:
@@ -62,7 +58,6 @@ def send_change_password_email(user, user_email, subject, to_email):
6258
message["To"] = to_email
6359
message["Subject"] = subject
6460
message.set_content(email_body, "html")
65-
attach_g2p_logo(message)
6661
try:
6762
with SMTP(host=settings.EMAIL_HOST, port=settings.EMAIL_PORT) as server:
6863
server.send_message(message)

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jsonschema==4.26.0
1414
jsonschema-specifications==2025.9.1
1515
mysqlclient==2.1.1
1616
ordered-set==4.1.0
17-
pillow==11.2.1
1817
pytz==2025.2
1918
referencing==0.37.0
2019
requests==2.33.1

0 commit comments

Comments
 (0)