Redesign claim-approved and password-reset emails as branded HTML
Confirmed Resend's /emails endpoint accepts an html field alongside text. Claim-approved email now carries an HTML alternative with the club's logo/colours; allauth's password-reset email is overridden with the same treatment, falling back to RosterChief's own branding outside a club context. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
18
templates/email/_button.html
Normal file
18
templates/email/_button.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% comment %}
|
||||
A single call-to-action button, table-wrapped so it centres reliably in
|
||||
Outlook desktop (which ignores margin: 0 auto on a bare <a>). Include with:
|
||||
|
||||
{% include "email/_button.html" with href=set_password_url label=_("Set your password") bg="#0ea5e9" fg="#ffffff" %}
|
||||
|
||||
`bg`/`fg` are plain hex strings (already resolved -- e.g. club.primary_color
|
||||
with a fallback), not template logic, so this stays a dumb, reusable snippet.
|
||||
{% endcomment %}
|
||||
<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin: 8px 0 24px 0;">
|
||||
<tr>
|
||||
<td align="center" bgcolor="{{ bg }}" style="border-radius:6px; background-color:{{ bg }};">
|
||||
<a href="{{ href }}" style="display:inline-block; padding:12px 28px; font-family: Arial, Helvetica, sans-serif; font-size:15px; font-weight:bold; color:{{ fg }}; text-decoration:none; border-radius:6px;">
|
||||
{{ label }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
Reference in New Issue
Block a user