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:
parent
007c45e3c7
commit
5704bce542
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue