From f9c9c8d71cc42ca126d86ed1888afa8e094f43f0 Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Wed, 1 Nov 2023 08:49:12 +0100 Subject: [PATCH] Do not attach service logo's (for now) --- server/src/main/java/access/mail/MailBox.java | 26 +++++++++---------- .../resources/templates/invitation_en.html | 6 ++--- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/server/src/main/java/access/mail/MailBox.java b/server/src/main/java/access/mail/MailBox.java index 421f39f3..f926cfeb 100644 --- a/server/src/main/java/access/mail/MailBox.java +++ b/server/src/main/java/access/mail/MailBox.java @@ -131,19 +131,19 @@ private void sendMail(String templateName, String subject, Map v setText(plainText, htmlText, helper); helper.setTo(to); helper.setFrom(emailFrom); - //Add logo, if there - if (variables.containsKey("groupedProviders")) { - List groupedProviders = (List) variables.get("groupedProviders"); - groupedProviders.stream() - .filter(groupedProvider -> StringUtils.hasText(groupedProvider.getLogo())) - .forEach(groupedProvider -> { - try { - helper.addInline(groupedProvider.logoName(), new UrlResource(new URI(groupedProvider.getLogo()))); - } catch (Exception e) { - //Can't be helped - } - }); - } +// //Add logo, if there +// if (variables.containsKey("groupedProviders")) { +// List groupedProviders = (List) variables.get("groupedProviders"); +// groupedProviders.stream() +// .filter(groupedProvider -> StringUtils.hasText(groupedProvider.getLogo())) +// .forEach(groupedProvider -> { +// try { +// helper.addInline(groupedProvider.logoName(), new UrlResource(new URI(groupedProvider.getLogo()))); +// } catch (Exception e) { +// //Can't be helped +// } +// }); +// } doSendMail(message); } diff --git a/server/src/main/resources/templates/invitation_en.html b/server/src/main/resources/templates/invitation_en.html index 921cda96..cae0abd9 100644 --- a/server/src/main/resources/templates/invitation_en.html +++ b/server/src/main/resources/templates/invitation_en.html @@ -24,13 +24,13 @@ {{#invitation.anyRoles}}
    {{#groupedProviders}} -
  • {{name}} ({{organisation}}) - als {{rolesDisplay}}
  • +
  • {{name}} ({{organisation}}) - as {{rolesDisplay}}
  • {{/groupedProviders}}
{{/invitation.anyRoles}} {{#invitation.message}} - Personal message from Astrid -
+ Personal message from {{user.name}} +

{{invitation.message}}