mirror of
https://github.com/plankanban/planka.git
synced 2025-12-22 17:25:01 +03:00
@@ -19,7 +19,7 @@ const buildTitle = (action, t) => {
|
|||||||
|
|
||||||
const buildBodyByFormat = (board, card, action, actorUser, t) => {
|
const buildBodyByFormat = (board, card, action, actorUser, t) => {
|
||||||
const markdownCardLink = `[${escapeMarkdown(card.name)}](${sails.config.custom.baseUrl}/cards/${card.id})`;
|
const markdownCardLink = `[${escapeMarkdown(card.name)}](${sails.config.custom.baseUrl}/cards/${card.id})`;
|
||||||
const htmlCardLink = `<a href="${sails.config.custom.baseUrl}/cards/${card.id}}">${escapeHtml(card.name)}</a>`;
|
const htmlCardLink = `<a href="${sails.config.custom.baseUrl}/cards/${card.id}">${escapeHtml(card.name)}</a>`;
|
||||||
|
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case Action.Types.CREATE_CARD: {
|
case Action.Types.CREATE_CARD: {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const buildTitle = (notification, t) => {
|
|||||||
|
|
||||||
const buildBodyByFormat = (board, card, notification, actorUser, t) => {
|
const buildBodyByFormat = (board, card, notification, actorUser, t) => {
|
||||||
const markdownCardLink = `[${escapeMarkdown(card.name)}](${sails.config.custom.baseUrl}/cards/${card.id})`;
|
const markdownCardLink = `[${escapeMarkdown(card.name)}](${sails.config.custom.baseUrl}/cards/${card.id})`;
|
||||||
const htmlCardLink = `<a href="${sails.config.custom.baseUrl}/cards/${card.id}}">${escapeHtml(card.name)}</a>`;
|
const htmlCardLink = `<a href="${sails.config.custom.baseUrl}/cards/${card.id}">${escapeHtml(card.name)}</a>`;
|
||||||
|
|
||||||
switch (notification.type) {
|
switch (notification.type) {
|
||||||
case Notification.Types.MOVE_CARD: {
|
case Notification.Types.MOVE_CARD: {
|
||||||
@@ -110,8 +110,8 @@ const buildAndSendNotifications = async (services, board, card, notification, ac
|
|||||||
|
|
||||||
// TODO: use templates (views) to build html
|
// TODO: use templates (views) to build html
|
||||||
const buildAndSendEmail = async (board, card, notification, actorUser, notifiableUser, t) => {
|
const buildAndSendEmail = async (board, card, notification, actorUser, notifiableUser, t) => {
|
||||||
const cardLink = `<a href="${sails.config.custom.baseUrl}/cards/${card.id}}">${escapeHtml(card.name)}</a>`;
|
const cardLink = `<a href="${sails.config.custom.baseUrl}/cards/${card.id}">${escapeHtml(card.name)}</a>`;
|
||||||
const boardLink = `<a href="${sails.config.custom.baseUrl}/boards/${board.id}}">${escapeHtml(board.name)}</a>`;
|
const boardLink = `<a href="${sails.config.custom.baseUrl}/boards/${board.id}">${escapeHtml(board.name)}</a>`;
|
||||||
|
|
||||||
let html;
|
let html;
|
||||||
switch (notification.type) {
|
switch (notification.type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user