party/internal/mailer/templates/parl_new_votes.tmpl
2026-05-10 10:49:20 +02:00

56 lines
1.9 KiB
Cheetah

{{define "subject"}}{{.Count}} neue Parlamentsabstimmung{{if gt .Count 1}}en{{end}}{{end}}
{{define "plainBody"}}
Hallo {{.Name}},
im Nationalrat wurde{{if gt .Count 1}}n{{end}} {{.Count}} neue Abstimmung{{if gt .Count 1}}en{{end}} durchgeführt:
{{range .Docs}}
• {{.Date}} — {{.Title}} ({{.Number}})
{{if .VoteText}}{{.VoteText}}{{end}}
{{end}}
Details unter: https://party.at/parlament
Die Digitale Partei
{{end}}
{{define "htmlBody"}}
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
body { font-family: sans-serif; font-size: 15px; color: #111; background: #f9f9f9; margin: 0; padding: 0; }
.wrap { max-width: 560px; margin: 40px auto; background: #fff; border-radius: 8px; border: 1px solid #e5e7eb; padding: 32px; }
h2 { margin: 0 0 20px; font-size: 20px; }
.vote { border: 1px solid #e5e7eb; border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; }
.vote-title { font-weight: 600; margin-bottom: 4px; }
.vote-meta { font-size: 13px; color: #6b7280; margin-bottom: 6px; }
.vote-result { font-size: 13px; }
.footer { margin-top: 28px; font-size: 13px; color: #6b7280; }
a { color: #2563eb; }
</style>
</head>
<body>
<div class="wrap">
<h2>{{.Count}} neue Parlamentsabstimmung{{if gt .Count 1}}en{{end}}</h2>
<p>Hallo {{.Name}},</p>
<p>im Nationalrat wurde{{if gt .Count 1}}n{{end}} soeben folgende Abstimmung{{if gt .Count 1}}en{{end}} durchgeführt:</p>
{{range .Docs}}
<div class="vote">
<div class="vote-title">{{.Title}}</div>
<div class="vote-meta">{{.Date}} &middot; {{.Number}}</div>
{{if .VoteText}}<div class="vote-result">{{.VoteText}}</div>{{end}}
</div>
{{end}}
<p><a href="https://party.at/parlament">Alle Parlamentsabstimmungen ansehen &rarr;</a></p>
<div class="footer">Die Digitale Partei</div>
</div>
</body>
</html>
{{end}}