From 9f9c519b2e98becf59ecb1520c47b93b04be8566 Mon Sep 17 00:00:00 2001 From: azayati Date: Mon, 10 Feb 2025 12:05:29 +0100 Subject: [PATCH] fix: Display note title in MENTION IN NOTE mail notification description - MEED-8357 (#379) Prior to this change, the note title is not display in MENTION IN NOTE mail notification description which makes its not clear for notified users. After this commit, we ensure to display the note title for this mail notification. --- .../resources/locale/portlet/notes/notesPortlet_en.properties | 1 + .../templates/mail/MentionInNoteNotificationPlugin.gtmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/notes-webapp/src/main/resources/locale/portlet/notes/notesPortlet_en.properties b/notes-webapp/src/main/resources/locale/portlet/notes/notesPortlet_en.properties index cf174fcf8a..8950e14e6e 100644 --- a/notes-webapp/src/main/resources/locale/portlet/notes/notesPortlet_en.properties +++ b/notes-webapp/src/main/resources/locale/portlet/notes/notesPortlet_en.properties @@ -260,6 +260,7 @@ SpaceSettings.application.notes.application.description=Notes Application UINotification.label.mentionInNote=Mentions in note UINotification.label.note=Notes Notifications note.notification.mention.in.note.description=You have been mentioned in a note: +note.mailNotification.mention.in.note.description=You have been mentioned in a note: {0} Notification.label.types.notes=Notes UINotification.title.MentionInNoteNotificationPlugin=Someone mentions me in a note notes.notification.label.footer=If you do not want to receive such notifications, click here to change your notification settings. diff --git a/notes-webapp/src/main/webapp/WEB-INF/notification/templates/mail/MentionInNoteNotificationPlugin.gtmpl b/notes-webapp/src/main/webapp/WEB-INF/notification/templates/mail/MentionInNoteNotificationPlugin.gtmpl index 305ac20aee..cc4d8acec0 100644 --- a/notes-webapp/src/main/webapp/WEB-INF/notification/templates/mail/MentionInNoteNotificationPlugin.gtmpl +++ b/notes-webapp/src/main/webapp/WEB-INF/notification/templates/mail/MentionInNoteNotificationPlugin.gtmpl @@ -58,7 +58,7 @@ $title

<% -def notificationDescription = _ctx.appRes("note.notification.mention.in.note.description"); +def notificationDescription = _ctx.appRes("note.mailNotification.mention.in.note.description",NOTE_TITLE); %>