|
5 | 5 | from app.config import Config
|
6 | 6 | from sendgrid.helpers.mail import Asm, Cc, Content, Email, Mail, To, Attachment, FileName, FileType, Disposition, \
|
7 | 7 | FileContent, GroupId, GroupsToDisplay
|
| 8 | +from static.sparc_logo_base64 import sparc_logo_base64 |
8 | 9 |
|
9 | 10 | subject = "Message from SPARC Portal"
|
10 | 11 |
|
|
45 | 46 | $message
|
46 | 47 | ''')
|
47 | 48 |
|
48 |
| -service_form_submission_request_confirmation_email = Template('''\ |
| 49 | +service_form_submission_request_confirmation_email = Template(f'''\ |
49 | 50 | <html>
|
50 | 51 | <body style="font-family: Arial, sans-serif; line-height: 1.6;">
|
51 | 52 |
|
|
65 | 66 | SPARC Data and Resource Center</p>
|
66 | 67 |
|
67 | 68 | <p>
|
68 |
| - <img src="https://sparc.science/logo-sparc-wave-primary.svg" alt="SPARC Logo" style="max-width: 200px; height: auto; margin-bottom: 20px;"/><br/> |
| 69 | + <img src="{sparc_logo_base64}" alt="SPARC Logo" style="max-width: 200px; height: auto; margin-bottom: 20px;"/><br/> |
69 | 70 | <a href="https://sparc.science">https://sparc.science</a><br/>
|
70 | 71 | NIH-approved, HEAL-compliant repository<br/>
|
71 | 72 | Registered with re3data.org
|
|
81 | 82 | </html>
|
82 | 83 | ''')
|
83 | 84 |
|
84 |
| -creation_request_confirmation_email = Template('''\ |
| 85 | +creation_request_confirmation_email = Template(f'''\ |
85 | 86 | <html>
|
86 | 87 | <body style="font-family: Arial, sans-serif; line-height: 1.6;">
|
87 | 88 |
|
|
101 | 102 | SPARC Data and Resource Center</p>
|
102 | 103 |
|
103 | 104 | <p>
|
104 |
| - <img src="https://sparc.science/logo-sparc-wave-primary.svg" alt="SPARC Logo" style="max-width: 200px; height: auto; margin-bottom: 20px;"/><br/> |
| 105 | + <img src="{sparc_logo_base64}" alt="SPARC Logo" style="max-width: 200px; height: auto; margin-bottom: 20px;"/><br/> |
105 | 106 | <a href="https://sparc.science">https://sparc.science</a><br/>
|
106 | 107 | NIH-approved, HEAL-compliant repository<br/>
|
107 | 108 | Registered with re3data.org
|
|
117 | 118 | </html>
|
118 | 119 | ''')
|
119 | 120 |
|
120 |
| -anbc_form_creation_request_confirmation_email = Template('''\ |
| 121 | +anbc_form_creation_request_confirmation_email = Template(f'''\ |
121 | 122 | <html>
|
122 | 123 | <body style="font-family: Arial, sans-serif; line-height: 1.6;">
|
123 | 124 |
|
|
137 | 138 | SPARC Data and Resource Center</p>
|
138 | 139 |
|
139 | 140 | <p>
|
140 |
| - <img src="https://sparc.science/logo-sparc-wave-primary.svg" alt="SPARC Logo" style="max-width: 200px; height: auto; margin-bottom: 20px;"/><br/> |
| 141 | + <img src="{sparc_logo_base64}" alt="SPARC Logo" style="max-width: 200px; height: auto; margin-bottom: 20px;"/><br/> |
141 | 142 | <a href="https://sparc.science">https://sparc.science</a><br/>
|
142 | 143 | NIH-approved, HEAL-compliant repository<br/>
|
143 | 144 | Registered with re3data.org
|
|
0 commit comments