From dba6d594fd3a5bb4fb5be111c623917c4a79d195 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sat, 20 Apr 2024 17:23:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=A1=D0=9E=D0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/helpers/common.js | 17 ++++++++++++++++- src/templates/emails/coverMe.hbs | 2 +- src/templates/emails/example.hbs | 2 +- src/templates/emails/main.hbs | 4 ++-- src/templates/emails/newShifts.hbs | 2 +- 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/helpers/common.js b/src/helpers/common.js index 615dfcb..c465141 100644 --- a/src/helpers/common.js +++ b/src/helpers/common.js @@ -750,4 +750,19 @@ exports.root = function (req) { exports.getInitials = function (names) { const parts = names.split(' '); return parts.map(part => part[0] + ".").join(''); -} \ No newline at end of file +} +// exports.getInitials = function (names) { +// const parts = names.split(' '); // Split the full name into parts +// if (parts.length === 0) { +// return ''; +// } +// // Extract the first two letters of the first name +// let initials = parts[0].substring(0, 2) + "."; + +// // If there is a last name, add the first letter of the last name +// if (parts.length > 1) { +// initials += parts[parts.length - 1][0] + "."; +// } + +// return initials; +// } \ No newline at end of file diff --git a/src/templates/emails/coverMe.hbs b/src/templates/emails/coverMe.hbs index e96a471..838b377 100644 --- a/src/templates/emails/coverMe.hbs +++ b/src/templates/emails/coverMe.hbs @@ -1,4 +1,4 @@ -{{!--Subject: ССС: Нужен е заместник --}} +{{!--Subject: ССОМ: Нужен е заместник --}}

Търси се зместник: diff --git a/src/templates/emails/example.hbs b/src/templates/emails/example.hbs index 4c872f9..35eba9f 100644 --- a/src/templates/emails/example.hbs +++ b/src/templates/emails/example.hbs @@ -1,4 +1,4 @@ -{{!-- Subject: ССС: Нужен е заместник--}} +{{!-- Subject: ССОМ: Нужен е заместник--}} {{!-- Text: Plain text version of your email. If not provided, HTML tags will be stripped from the HTML version for the text version. --}} diff --git a/src/templates/emails/main.hbs b/src/templates/emails/main.hbs index cd6ef07..20fc03c 100644 --- a/src/templates/emails/main.hbs +++ b/src/templates/emails/main.hbs @@ -5,7 +5,7 @@ - ССС известия + ССОМ известия @@ -18,7 +18,7 @@
- © 2024 ССС. Openly licensed. + © 2024 ССОМ. Openly licensed.
diff --git a/src/templates/emails/newShifts.hbs b/src/templates/emails/newShifts.hbs index a49bc72..96d5c59 100644 --- a/src/templates/emails/newShifts.hbs +++ b/src/templates/emails/newShifts.hbs @@ -1,4 +1,4 @@ -{{!-- Subject: ССС: Нови назначени смени--}} +{{!-- Subject: ССОМ: Нови назначени смени--}}

Здравей {{publisherFirstName}} {{publisherLastName}}!