mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-07-25 23:18:06 -04:00
BE: better notification preview
This commit is contained in:
@@ -146,9 +146,14 @@ class NotificationInstance:
|
||||
mail_html, conf.REPORT_DASHBOARD_URL + "/deviceDetails.php?mac="
|
||||
)
|
||||
|
||||
# Add Preheaders for preview after mac links created
|
||||
# Add preheader for inbox preview after all links have been generated.
|
||||
# Invisible padding prevents email clients from showing the start of the email body.
|
||||
preheader = " • ".join(preheaders)
|
||||
padding = " " * 40 + "​" * 40
|
||||
|
||||
mail_html = mail_html.replace(
|
||||
"PREHEADER", " • ".join(preheaders)
|
||||
"PREHEADER",
|
||||
preheader + padding,
|
||||
)
|
||||
|
||||
final_html = indent(
|
||||
|
||||
Reference in New Issue
Block a user