Files
tenant-registry/internal/mail/templates/layout.html
T
Sharang ParnerkarandClaude Opus 5.5 6058a94254
ci / shared (pull_request) Skipped
feat(onprem): mails come from the installation, not from us
On APP_ENV=onprem the registry's mails (new findings, published documents)
no longer carry our company signature, address, register entry, contact
address or legal pages. They say the installation sent them, name the
customer's contact (MAIL_CONTACT) and link the customer's imprint and
privacy notice (LEGAL_IMPRINT_URL, LEGAL_PRIVACY_URL), each only when set.

mail.View gets a Site; the zero value is the cloud, so cloud mails stay as
they were (checked byte for byte against the previous templates) apart from
the spelling "Breakpilot", also in the default sender name. The legal line
moved from every text template into signature.tmpl.

On-prem the registry also refuses to start when MAIL_FROM, PORTAL_URL,
INVITE_REDIRECT_URI or LEGAL_* point at breakpilot.com.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 09:16:24 +01:00

30 lines
1.5 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:#F5F6FB;font-family:Arial,Helvetica,sans-serif;color:#14162B;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background:#F5F6FB;padding:24px 12px;">
<tr><td align="center">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:560px;background:#ffffff;border-radius:10px;border:1px solid #E4E6F0;">
<tr><td style="padding:20px 28px;border-bottom:1px solid #EFF0F6;">
<table role="presentation" cellpadding="0" cellspacing="0"><tr>
<td style="font-size:17px;font-weight:800;letter-spacing:-0.3px;color:#14162B;">Break<span style="color:#4F46E5;">Pilot</span></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:#4F46E5;color:#ffffff;text-decoration:none;font-weight:bold;font-size:14px;padding:11px 20px;border-radius:8px;">{{template "button" .}}</a>
</td></tr>
<tr><td style="padding:4px 28px 24px 28px;">
{{template "signature_html" .}}
</td></tr>
<tr><td style="padding:18px 28px;border-top:1px solid #EFF0F6;font-size:11.5px;line-height:1.6;color:#5E6384;">
{{template "footer" .}}{{template "legal_html" .}}
</td></tr>
</table>
</td></tr>
</table>
</body>
</html>{{end}}