feat(email): convert banned.html to shared partials + brand

This commit is contained in:
2026-06-26 23:47:51 +02:00
parent cf50f11ed7
commit 6612aecc01
2 changed files with 45 additions and 4 deletions
@@ -506,16 +506,16 @@ Separated because the ban template carries a reason/expiry block, not the standa
**Files:**
- Modify: `email/banned.html`
- [ ] **Step 1: Read `email/banned.html`** to see its body rows (greeting, ban reason, expiry).
- [x] **Step 1: Read `email/banned.html`** to see its body rows (greeting, ban reason, expiry).
- [ ] **Step 2: Apply the Task 6 transform** — IMPORT header + `[[email:banned.preheader]]` preheader + retained body (with the palette/font find/replace) + IMPORT footer. Keep all existing `[[email:ban.*]]` / reason / expiry keys and `{{{ if }}}` conditionals unchanged. Recolor any reason/quote block: card `bgcolor``#fbf7ef`, body text → `#3a3340`, any muted text → `#9a9086`.
- [x] **Step 2: Apply the Task 6 transform** — IMPORT header + `[[email:banned.preheader]]` preheader + retained body (with the palette/font find/replace) + IMPORT footer. Keep all existing `[[email:ban.*]]` / reason / expiry keys and `{{{ if }}}` conditionals unchanged. Recolor any reason/quote block: card `bgcolor``#fbf7ef`, body text → `#3a3340`, any muted text → `#9a9086`.
- [ ] **Step 3: Guard + build**
Run: `node scripts/check-emails.js` → expect only `notification.html`, `digest.html` failing.
Run: `./nodebb build` → clean.
Task 7 note: guard ran with only the expected remaining `notification.html` and `digest.html` failures. `./nodebb build` was not run because no executable `./nodebb` / NodeBB root is available in this theme repo.
- [ ] **Step 4: Commit**
- [x] **Step 4: Commit**
```bash
git add email/banned.html