Publishing a document now mails the workspace members who may read documents, and products can POST /v1/notifications (route group "notify") to report new findings, which reach IT_ADMIN, OWNER, CXO and LEGAL. Demo tenants and tenants without an organization get nothing. Every mail is a mail_outbox row (migration 0009), one per recipient, idempotent per key, sent by a worker with backoff and parked with its error after twelve attempts. Messages are rendered when sent from embedded German and English templates in the BreakPilot layout, as multipart text + HTML, through the SMTP relay (SMTP_*). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
29 lines
1.8 KiB
HTML
29 lines
1.8 KiB
HTML
{{define "layout"}}<!doctype html>
|
|
<html lang="{{.Lang}}">
|
|
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>{{.Subject}}</title></head>
|
|
<body style="margin:0;padding:0;background:#f4f3f8;font-family:Arial,Helvetica,sans-serif;color:#1d1a2e;">
|
|
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background:#f4f3f8;padding:24px 12px;">
|
|
<tr><td align="center">
|
|
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:560px;background:#ffffff;border-radius:8px;border:1px solid #e4e1ef;">
|
|
<tr><td style="padding:20px 28px;border-bottom:1px solid #eeecf5;">
|
|
<table role="presentation" cellpadding="0" cellspacing="0"><tr>
|
|
<td style="width:28px;height:28px;background:#6d3fe0;border-radius:6px;color:#ffffff;font-weight:bold;font-size:16px;text-align:center;vertical-align:middle;">B</td>
|
|
<td style="padding-left:10px;font-size:15px;font-weight:bold;letter-spacing:-0.2px;">BreakPilot</td>
|
|
</tr></table>
|
|
</td></tr>
|
|
<tr><td style="padding:28px 28px 8px 28px;font-size:14px;line-height:1.6;">
|
|
{{template "html" .}}
|
|
</td></tr>
|
|
<tr><td style="padding:8px 28px 28px 28px;">
|
|
<a href="{{.URL}}" style="display:inline-block;background:#6d3fe0;color:#ffffff;text-decoration:none;font-weight:bold;font-size:14px;padding:10px 18px;border-radius:6px;">{{template "button" .}}</a>
|
|
</td></tr>
|
|
<tr><td style="padding:18px 28px;border-top:1px solid #eeecf5;font-size:11.5px;line-height:1.6;color:#7a7590;">
|
|
{{template "footer" .}}<br>
|
|
BreakPilot GmbH · <a href="https://breakpilot.com/impressum" style="color:#7a7590;">{{if eq .Lang "de"}}Impressum{{else}}Imprint{{end}}</a> · <a href="https://breakpilot.com/datenschutz" style="color:#7a7590;">{{if eq .Lang "de"}}Datenschutz{{else}}Privacy{{end}}</a>
|
|
</td></tr>
|
|
</table>
|
|
</td></tr>
|
|
</table>
|
|
</body>
|
|
</html>{{end}}
|