Files
minstrel/internal/mailer/templates/password_reset.html
T
bvandeusenandClaude Opus 5.5 bae3421057 feat(email): every email Minstrel sends uses one layout (#8150)
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>
2026-11-27 10:27:16 -05:00

8 lines
615 B
HTML

<p style="{{style "p"}}">Hello <strong>{{.Username}}</strong>,</p>
<p style="{{style "p"}}">A password reset was requested for your Minstrel account. To set a new
password, use the button below within <strong>{{.ExpiryHours}}</strong> hours.</p>
<p style="margin:24px 0;"><a href="{{.ResetURL}}" style="{{style "button"}}">Reset password</a></p>
<p style="{{style "p"}} {{style "quiet"}}">Or copy this address into your browser:<br>
<span style="{{style "code"}}">{{.ResetURL}}</span></p>
<p style="margin:0; {{style "quiet"}}">If you didn't ask for this, you can ignore this email. Your password won't change.</p>