From 347db6cbc747f8e3cf006c0371f650e84f78e37e Mon Sep 17 00:00:00 2001 From: ClaraCrazy Date: Wed, 2 Oct 2024 14:45:58 +0200 Subject: [PATCH] Fix missing customization in footer I'm embarrased this was hardcoded for so long without me realizing... sowwy --- infrastructure/web/routes/inbox.js | 5 +++++ infrastructure/web/routes/login.js | 2 ++ infrastructure/web/views/layout.twig | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/infrastructure/web/routes/inbox.js b/infrastructure/web/routes/inbox.js index fe1493f..fc0667d 100644 --- a/infrastructure/web/routes/inbox.js +++ b/infrastructure/web/routes/inbox.js @@ -17,6 +17,7 @@ router.get('^/:address([^@/]+@[^@/]+)', sanitizeAddress, (req, res, _next) => { title: `${config.http.branding[0]} | ` + req.params.address, address: req.params.address, mailSummaries: mailProcessingService.getMailSummaries(req.params.address), + servicename: config.http.branding[0], madeby: config.http.branding[1], madebysite: config.http.branding[2] }) @@ -45,6 +46,7 @@ router.get( address: req.params.address, mail, uid: req.params.uid, + servicename: config.http.branding[0], madeby: config.http.branding[1], madebysite: config.http.branding[2] }) @@ -54,6 +56,7 @@ router.get( { address: req.params.address, 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], madebysite: config.http.branding[2], } @@ -128,6 +131,7 @@ router.get( { address: req.params.address, 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], madebysite: config.http.branding[2], } @@ -168,6 +172,7 @@ router.get( { address: req.params.address, 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], madebysite: config.http.branding[2], } diff --git a/infrastructure/web/routes/login.js b/infrastructure/web/routes/login.js index df85a67..d2607b6 100644 --- a/infrastructure/web/routes/login.js +++ b/infrastructure/web/routes/login.js @@ -10,6 +10,7 @@ router.get('/', (req, res, _next) => { title: `${config.http.branding[0]} | Your temporary Inbox`, username: randomWord(), domains: config.email.domains, + servicename: config.http.branding[0], madeby: config.http.branding[1], madebysite: config.http.branding[2] }) @@ -42,6 +43,7 @@ router.post( title: `${config.http.branding[0]} | Your temporary Inbox`, username: randomWord(), domains: config.email.domains, + servicename: config.http.branding[0], madeby: config.http.branding[1], madebysite: config.http.branding[2] }) diff --git a/infrastructure/web/views/layout.twig b/infrastructure/web/views/layout.twig index 5b3d6a5..7470b83 100644 --- a/infrastructure/web/views/layout.twig +++ b/infrastructure/web/views/layout.twig @@ -28,7 +28,7 @@ {% block footer %} {% endblock %}