diff --git a/backend/routes/api.js b/backend/routes/api.js
index 9809f49..4126aa7 100644
--- a/backend/routes/api.js
+++ b/backend/routes/api.js
@@ -38,89 +38,99 @@ function buildLoanEmail({ user, items, startDate, endDate, createdDate }) {
const brand = process.env.MAIL_BRAND_COLOR || "#0ea5e9";
const itemsList =
Array.isArray(items) && items.length
- ? `
${items
- .map((i) => `- ${i}
`)
+ ? `${items
+ .map(
+ (i) =>
+ `- ${i}
`
+ )
.join("")}
`
: "N/A";
return `
-
-
-
-
-
-
-
-
-
-
-
-
- Neue Ausleihe erstellt
- |
-
-
-
- Es wurde eine neue Ausleihe angelegt. Hier sind die Details:
-
+
+
+
+
+
+
+
+
+
+
+
+ Neue Ausleihe erstellt – Übersicht der Buchung.
+
+
+
+
+
+ Neue Ausleihe erstellt
+ |
+
+
+
+ Es wurde eine neue Ausleihe angelegt. Hier sind die Details:
+
+
- Benutzer |
- ${
+ | Benutzer |
+ ${
user || "N/A"
} |
- Ausgeliehene Gegenstände |
- ${itemsList} |
+ Ausgeliehene Gegenstände |
+ ${itemsList} |
- Startdatum |
- ${formatDateTime(
+ | Startdatum |
+ ${formatDateTime(
startDate
)} |
- Enddatum |
- ${formatDateTime(
+ | Enddatum |
+ ${formatDateTime(
endDate
)} |
- Erstellt am |
- ${formatDateTime(
+ | Erstellt am |
+ ${formatDateTime(
createdDate
)} |
-
-
-
- Zur Übersicht aller Ausleihen
-
-
- Diese E-Mail wurde automatisch vom Ausleihsystem gesendet. Bitte nicht antworten.
- |
-
-
-
-
+
+
+
+
+ Übersicht öffnen
+
+
+
+ Diese E-Mail wurde automatisch vom Ausleihsystem gesendet. Bitte nicht antworten.
+
+ |
+
+
+
+
`;
}