The password reset, the new-music and activity summaries and the SMTP
test message each drew their own page; the test message had no layout
at all. They now share internal/mailer's layout: the Minstrel name at
the top, the email's heading and message on a card in the design
system's dark theme, and a footer saying which server sent it and why,
signed "— Minstrel", with the notification-settings link on the
summaries. A plain-text body in the same frame goes alongside.
An email supplies only its content templates and a Frame (heading,
server, reason). Links, buttons and quiet text take named styles from
the layout ({{style "link"}}), so colours change in one place; an
unknown style name fails the render. The SMTP test message is a
template now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
795 B
HTML
16 lines
795 B
HTML
<p style="{{style "p"}}">Hello <strong>{{.Name}}</strong>,</p>
|
|
<p style="margin:0;">{{.Intro}}</p>
|
|
{{range .Artists}}
|
|
<p style="{{style "group"}}">{{if .URL}}<a href="{{.URL}}" style="{{style "link"}}">{{.Name}}</a>{{else}}{{.Name}}{{end}}</p>
|
|
{{if .Titles}}<ul style="{{style "list"}}">
|
|
{{range .Titles}}<li style="{{style "item"}}">{{if .URL}}<a href="{{.URL}}" style="{{style "link"}}">{{.Title}}</a>{{else}}{{.Title}}{{end}}</li>
|
|
{{end}}</ul>{{end}}
|
|
{{end}}{{if .Items}}
|
|
<ul style="margin:16px 0 0; padding-left:20px;">
|
|
{{range .Items}}<li style="margin:8px 0;">
|
|
{{if .URL}}<a href="{{.URL}}" style="{{style "link"}} font-weight:600;">{{.Title}}</a>{{else}}<strong>{{.Title}}</strong>{{end}}
|
|
{{if .Body}}<br><span style="{{style "quiet"}}">{{.Body}}</span>{{end}}
|
|
</li>
|
|
{{end}}</ul>
|
|
{{end}}
|