Initial feature-complete implementation of the v1.0 specification (phases 0-11 of `docs/implementation-plan.md`). Added: - Panel (Go, single static binary) with SQLite persistence, one-time - Domain management with per-domain DKIM (RSA-2048, generated in pure Go) and - Application (sender identity) management: SASL credentials via `sasldb2`, - Full Postfix relay config generated from env at container start: SMTPS 465, - Journal milter (pure Go, `go-milter`) recording every send to `send_log`; … (6 more in CHANGELOG) Full detail: CHANGELOG.md (0.1.0).
33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
{{define "sendlog_rows"}}
|
|
<div id="sendlog-rows" hx-get="/sendlog/rows?domain={{.FilterDomain}}&app={{.FilterApp}}&p={{.Page}}"
|
|
hx-trigger="every 5s" hx-swap="outerHTML">
|
|
{{if .Rows}}
|
|
<table>
|
|
<thead>
|
|
<tr><th>Time</th><th>Domain</th><th>App</th><th>From</th><th>To</th><th>Subject</th><th>Status</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Rows}}
|
|
<tr>
|
|
<td class="muted">{{.CreatedAt.Format "2006-01-02 15:04:05"}}</td>
|
|
<td>{{.Domain}}</td>
|
|
<td>{{.AppLogin}}</td>
|
|
<td>{{.From}}</td>
|
|
<td>{{.To}}</td>
|
|
<td>{{.Subject}}</td>
|
|
<td>{{.Status}}</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
<p class="muted">
|
|
Page {{.Page}}{{if .LastPage}} of {{.LastPage}}{{end}}
|
|
{{if .HasPrev}} · <a href="/sendlog?domain={{.FilterDomain}}&app={{.FilterApp}}&p={{.PrevPage}}">← Newer</a>{{end}}
|
|
{{if .HasNext}} · <a href="/sendlog?domain={{.FilterDomain}}&app={{.FilterApp}}&p={{.NextPage}}">Older →</a>{{end}}
|
|
</p>
|
|
{{else}}
|
|
<p class="muted">No messages logged yet.</p>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|