Fix missing customization in footer

I'm embarrased this was hardcoded for so long without me realizing... sowwy
pull/16/head
ClaraCrazy 2024-10-02 14:45:58 +02:00
parent 1ba80a8b51
commit 347db6cbc7
No known key found for this signature in database
GPG Key ID: EBBC896ACB497011
3 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,7 @@ router.get('^/:address([^@/]+@[^@/]+)', sanitizeAddress, (req, res, _next) => {
title: `${config.http.branding[0]} | ` + req.params.address, title: `${config.http.branding[0]} | ` + req.params.address,
address: req.params.address, address: req.params.address,
mailSummaries: mailProcessingService.getMailSummaries(req.params.address), mailSummaries: mailProcessingService.getMailSummaries(req.params.address),
servicename: config.http.branding[0],
madeby: config.http.branding[1], madeby: config.http.branding[1],
madebysite: config.http.branding[2] madebysite: config.http.branding[2]
}) })
@ -45,6 +46,7 @@ router.get(
address: req.params.address, address: req.params.address,
mail, mail,
uid: req.params.uid, uid: req.params.uid,
servicename: config.http.branding[0],
madeby: config.http.branding[1], madeby: config.http.branding[1],
madebysite: config.http.branding[2] madebysite: config.http.branding[2]
}) })
@ -54,6 +56,7 @@ router.get(
{ {
address: req.params.address, address: req.params.address,
message: 'This mail could not be found. It either does not exist or has been deleted from our servers!', message: 'This mail could not be found. It either does not exist or has been deleted from our servers!',
servicename: config.http.branding[0],
madeby: config.http.branding[1], madeby: config.http.branding[1],
madebysite: config.http.branding[2], madebysite: config.http.branding[2],
} }
@ -128,6 +131,7 @@ router.get(
{ {
address: req.params.address, address: req.params.address,
message: 'This attachment could not be found. It either does not exist or has been deleted from our servers!', message: 'This attachment could not be found. It either does not exist or has been deleted from our servers!',
servicename: config.http.branding[0],
madeby: config.http.branding[1], madeby: config.http.branding[1],
madebysite: config.http.branding[2], madebysite: config.http.branding[2],
} }
@ -168,6 +172,7 @@ router.get(
{ {
address: req.params.address, address: req.params.address,
message: 'This mail could not be found. It either does not exist or has been deleted from our servers!', message: 'This mail could not be found. It either does not exist or has been deleted from our servers!',
servicename: config.http.branding[0],
madeby: config.http.branding[1], madeby: config.http.branding[1],
madebysite: config.http.branding[2], madebysite: config.http.branding[2],
} }

View File

@ -10,6 +10,7 @@ router.get('/', (req, res, _next) => {
title: `${config.http.branding[0]} | Your temporary Inbox`, title: `${config.http.branding[0]} | Your temporary Inbox`,
username: randomWord(), username: randomWord(),
domains: config.email.domains, domains: config.email.domains,
servicename: config.http.branding[0],
madeby: config.http.branding[1], madeby: config.http.branding[1],
madebysite: config.http.branding[2] madebysite: config.http.branding[2]
}) })
@ -42,6 +43,7 @@ router.post(
title: `${config.http.branding[0]} | Your temporary Inbox`, title: `${config.http.branding[0]} | Your temporary Inbox`,
username: randomWord(), username: randomWord(),
domains: config.email.domains, domains: config.email.domains,
servicename: config.http.branding[0],
madeby: config.http.branding[1], madeby: config.http.branding[1],
madebysite: config.http.branding[2] madebysite: config.http.branding[2]
}) })

View File

@ -28,7 +28,7 @@
{% block footer %} {% block footer %}
<section class="container footer"> <section class="container footer">
<hr> <hr>
<h4>48hr.email offered by <a href="{{ madebysite }}" style="text-decoration:underline" target="_blank">{{ madeby }}</a> | All Emails will be deleted after 48hrs | This project is <a href="https://github.com/crazyco-xyz/48hr.email" style="text-decoration:underline" target="_blank">open-source ♥</a></h4> <h4>{{ servicename }} offered by <a href="{{ madebysite }}" style="text-decoration:underline" target="_blank">{{ madeby }}</a> | All Emails will be deleted after 48hrs | This project is <a href="https://github.com/crazyco-xyz/48hr.email" style="text-decoration:underline" target="_blank">open-source ♥</a></h4>
</section> </section>
{% endblock %} {% endblock %}