mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-10-22 16:42:37 +00:00
- use tranquil_pds not comms since the validate email and templates are reexported from pds package - implement handlebars syntax - update templates to be transport agnostic, email, discord, telegram with handlebar examples with conditions - refactor template and notice logic from PR #269, and #299 to be self contained enforcing all substitutions to be defined within the enum properties - fix open TODOs, store.rs uses get_string within the ids.rs get_built_ins method - UTC logging for User facing notices restored - new api error for verification channel requires bot - fix tests to use metadata for html body... - remove unwrap and handle template rendering error explicitly - update verify_link to use handlebars trusted url syntax {{{verify_link}}} - fix verification enqueueing to include channel in template rendering - use locale enum for validation and display instead of string array separately maintained - support text only templates for signal and discord - fix missing verify_link and verify_page in migration and signup verification templates with unit tests - consolidated body and subject notice methods into a single rendered function
28 lines
1.1 KiB
HTML
28 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>{{hostname}}</title>
|
|
</head>
|
|
<body style="margin:0;padding:0;background:#f9fafa;font-family:Georgia,'Times New Roman',serif;color:#1a1d1d;">
|
|
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="background:#f9fafa;padding:32px 16px;">
|
|
<tr>
|
|
<td align="center">
|
|
<table role="presentation" width="560" cellspacing="0" cellpadding="0" style="background:#ffffff;border:1px solid #dce0df;padding:32px;">
|
|
<tr>
|
|
<td style="font-size:20px;font-weight:700;padding-bottom:16px;">{{hostname}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="font-size:16px;line-height:1.5;">
|
|
<p>Hello @{{handle}},</p><br/><p>Your sign-in verification code is: {{code}}</p><br/><p>This code will expire in 10 minutes.</p><br/><p>If you did not request this, please secure your account immediately.</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
|