Skip to content

Commit c3a9f99

Browse files
[WEB-6420] chore: self-host social icons in project invitation email (#8718)
* chore: add self-hosted social icon assets for email templates * chore: pass current_site to project invitation email context * chore: replace mailinblue CDN icons with self-hosted static assets
1 parent 71b0d30 commit c3a9f99

6 files changed

Lines changed: 5 additions & 4 deletions

File tree

apps/api/plane/bgtasks/project_invitation_task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def project_invitation(email, project_id, token, current_site, invitor):
3737
"first_name": user.first_name,
3838
"project_name": project.name,
3939
"invitation_url": abs_url,
40+
"current_site": current_site,
4041
}
4142

4243
html_content = render_to_string("emails/invitations/project_invitation.html", context)
1.59 KB
Loading
946 Bytes
Loading
1.2 KB
Loading
1.26 KB
Loading

apps/api/templates/emails/invitations/project_invitation.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
<td height="5" width="8" style=" font-size: 5px; line-height: 5px; " > ­ </td>
228228
</tr>
229229
<tr>
230-
<td class="r26-i" style=" font-size: 0px; line-height: 0px; " > <a href="https://github.com/makeplane/plane" target="_blank" style=" color: #0092ff; text-decoration: underline; " > <img src="https://creative-assets.mailinblue.com/editor/social-icons/rounded_colored/github_32px.png" width="32" border="0" class="" style=" display: block; width: 100%; " /></a> </td>
230+
<td class="r26-i" style=" font-size: 0px; line-height: 0px; " > <a href="https://github.com/makeplane/plane" target="_blank" style=" color: #0092ff; text-decoration: underline; " > <img src="{{ current_site }}/static/logos/github_32px.png" width="32" border="0" class="" style=" display: block; width: 100%; " /></a> </td>
231231
<td class="nl2go-responsive-hide" width="8" style=" font-size: 0px; line-height: 1px; " > ­ </td>
232232
</tr>
233233
<tr class="nl2go-responsive-hide" >
@@ -244,7 +244,7 @@
244244
<td height="5" width="8" style=" font-size: 5px; line-height: 5px; " > ­ </td>
245245
</tr>
246246
<tr>
247-
<td class="r26-i" style=" font-size: 0px; line-height: 0px; " > <a href="https://forum.plane.so" target="_blank" style=" color: #0092ff; text-decoration: underline; " > <img src="https://creative-assets.mailinblue.com/editor/social-icons/rounded_colored/website_32px.png" width="32" border="0" class="" style=" display: block; width: 100%; " /></a> </td>
247+
<td class="r26-i" style=" font-size: 0px; line-height: 0px; " > <a href="https://forum.plane.so" target="_blank" style=" color: #0092ff; text-decoration: underline; " > <img src="{{ current_site }}/static/logos/website_32px.png" width="32" border="0" class="" style=" display: block; width: 100%; " /></a> </td>
248248
<td class="nl2go-responsive-hide" width="8" style=" font-size: 0px; line-height: 1px; " > ­ </td>
249249
</tr>
250250
<tr class="nl2go-responsive-hide" >
@@ -261,7 +261,7 @@
261261
<td height="5" width="8" style=" font-size: 5px; line-height: 5px; " > ­ </td>
262262
</tr>
263263
<tr>
264-
<td class="r26-i" style=" font-size: 0px; line-height: 0px; " > <a href="https://twitter.com/planepowers" target="_blank" style=" color: #0092ff; text-decoration: underline; " > <img src="https://creative-assets.mailinblue.com/editor/social-icons/rounded_colored/twitter_32px.png" width="32" border="0" class="" style=" display: block; width: 100%; " /></a> </td>
264+
<td class="r26-i" style=" font-size: 0px; line-height: 0px; " > <a href="https://twitter.com/planepowers" target="_blank" style=" color: #0092ff; text-decoration: underline; " > <img src="{{ current_site }}/static/logos/twitter_32px.png" width="32" border="0" class="" style=" display: block; width: 100%; " /></a> </td>
265265
<td class="nl2go-responsive-hide" width="8" style=" font-size: 0px; line-height: 1px; " > ­ </td>
266266
</tr>
267267
<tr class="nl2go-responsive-hide" >
@@ -277,7 +277,7 @@
277277
<td height="5" style=" font-size: 5px; line-height: 5px; " > ­ </td>
278278
</tr>
279279
<tr>
280-
<td class="r26-i" style=" font-size: 0px; line-height: 0px; " > <a href="https://www.linkedin.com/company/planepowers/" target="_blank" style=" color: #0092ff; text-decoration: underline; " > <img src="https://creative-assets.mailinblue.com/editor/social-icons/rounded_colored/linkedin_32px.png" width="32" border="0" class="" style=" display: block; width: 100%; " /></a> </td>
280+
<td class="r26-i" style=" font-size: 0px; line-height: 0px; " > <a href="https://www.linkedin.com/company/planepowers/" target="_blank" style=" color: #0092ff; text-decoration: underline; " > <img src="{{ current_site }}/static/logos/linkedin_32px.png" width="32" border="0" class="" style=" display: block; width: 100%; " /></a> </td>
281281
</tr>
282282
<tr class="nl2go-responsive-hide" >
283283
<td height="5" style=" font-size: 5px; line-height: 5px; " > ­ </td>

0 commit comments

Comments
 (0)