preview test send: keep {{ UnsubscribeURL }} (real link); hero 4-col to save vertical space
- send_test no longer overwrites {{ UnsubscribeURL }} with a dead static URL;
Listmonk renders it into a working per-subscriber unsubscribe link.
- dot-compliance hero grid: 4 columns (minmax 150px, max-width 920px) instead
of 3 to reduce vertical space.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
60312e5201
commit
d3bf5b3520
2 changed files with 4 additions and 2 deletions
|
|
@ -187,7 +187,9 @@ def send_test(base: dict, campaign_id: int, sample_row: tuple, label: str, tz: s
|
|||
body = body.replace("{{ .Subscriber.Attribs.company }}", name or "Sample Carrier LLC")
|
||||
body = body.replace("{{ .Subscriber.Attribs.dot_number }}", dot or "0000000")
|
||||
body = body.replace("{{ .Subscriber.Attribs.state }}", state or "TX")
|
||||
body = body.replace("{{ UnsubscribeURL }}", "https://performancewest.net/unsubscribe")
|
||||
# NOTE: leave {{ UnsubscribeURL }} alone — Listmonk renders it into a real,
|
||||
# working per-subscriber unsubscribe link (even on test sends). Overwriting it
|
||||
# produced a dead /unsubscribe link with no subscriber identity.
|
||||
subj = base["subject"].replace("{{ .Subscriber.Attribs.dot_number }}", dot or "0000000")
|
||||
# Listmonk /test needs `lists` as an array of IDs (base["lists"] is objects)
|
||||
list_ids = [l["id"] for l in base.get("lists", []) if isinstance(l, dict)] or [1]
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ Sign out
|
|||
</div>
|
||||
<h1 class="text-2xl sm:text-3xl font-bold text-white mb-4">We handle your FMCSA filings so you can focus on the road.</h1>
|
||||
<p class="text-gray-300 text-sm leading-relaxed max-w-2xl mx-auto mb-8">Performance West is a dedicated transportation compliance firm serving thousands of motor carriers nationwide. We combine deep regulatory expertise with purpose-built filing technology so your paperwork is done right, done fast, and tracked every step of the way.</p>
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;max-width:680px;margin:0 auto;text-align:left">
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;max-width:920px;margin:0 auto;text-align:left">
|
||||
<div style="background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);border-radius:10px;padding:16px">
|
||||
<div style="font-size:22px;margin-bottom:6px">📋</div>
|
||||
<div style="font-size:13px;font-weight:700;color:#fff;margin-bottom:4px">Specialized in trucking compliance</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue