This commit is contained in:
Dobromir Popov
2024-04-20 17:23:44 +03:00
parent 8dac85ff14
commit dba6d594fd
5 changed files with 21 additions and 6 deletions

View File

@ -750,4 +750,19 @@ exports.root = function (req) {
exports.getInitials = function (names) { exports.getInitials = function (names) {
const parts = names.split(' '); const parts = names.split(' ');
return parts.map(part => part[0] + ".").join(''); return parts.map(part => part[0] + ".").join('');
} }
// 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;
// }

View File

@ -1,4 +1,4 @@
{{!--Subject: ССС: Нужен е заместник --}} {{!--Subject: ССОМ: Нужен е заместник --}}
<section> <section>
<h3>Търси се зместник: <h3>Търси се зместник:

View File

@ -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: Plain text version of your email. If not provided, HTML tags will be stripped from the HTML version for the
text version. --}} text version. --}}

View File

@ -5,7 +5,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" <meta name="viewport"
content="width=device-width, initial-scale=1.0"> content="width=device-width, initial-scale=1.0">
<title>ССС известия</title> <title>ССОМ известия</title>
</head> </head>
<body> <body>
@ -18,7 +18,7 @@
</main> </main>
<footer style="background-color: #f3f3f3; padding: 20px; text-align: center;"> <footer style="background-color: #f3f3f3; padding: 20px; text-align: center;">
© 2024 ССС. Openly licensed. © 2024 ССОМ. Openly licensed.
</footer> </footer>
</body> </body>

View File

@ -1,4 +1,4 @@
{{!-- Subject: ССС: Нови назначени смени--}} {{!-- Subject: ССОМ: Нови назначени смени--}}
<section> <section>
<h2>Здравей {{publisherFirstName}} {{publisherLastName}}!</h2> <h2>Здравей {{publisherFirstName}} {{publisherLastName}}!</h2>