1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-08-10 07:55:27 +02:00

feat(notifications): add hyperlinks to email notifications for direct navigation to cards and boards for better user experience

This commit is contained in:
Edouard Richard 2024-03-20 12:15:10 +01:00
parent 007c45e3c7
commit 5704bce542

View file

@ -39,7 +39,11 @@ async function sendEmailNotification({ notification, action }) {
case Action.Types.COMMENT_CARD:
email = {
subject: `${actionUser.name} commented the card ${actionCard.name} on ${actionBoard.name}`,
html: `<p>${actionUser.name} commented the card ${actionCard.name} on ${actionBoard.name}</p><p>${action.data.text}</p>`,
html:
`<p>${actionUser.name} commented the card ` +
`<a href="${process.env.BASE_URL}/cards/${actionCard.id}">${actionCard.name}</a> ` +
`on <a href="${process.env.BASE_URL}/boards/${actionBoard.id}">${actionBoard.name}</a></p>` +
`<p>${action.data.text}</p>`,
};
break;