listmonk/static/public/templates/archive.html

25 lines
632 B
HTML

{{ define "archive" }}
{{ template "header" .}}
<section>
<h2>{{ L.T "public.archiveTitle" }}</h2>
<ul class="archive">
{{ range $c := .Data.Campaigns }}
<li>
<a href="{{ $c.URL }}">{{ $c.Subject }}</a>
<span class="date">{{ $c.CreatedAt.Time.Format "Mon, 02 Jan 2006" }}</span>
</li>
{{ end }}
</ul>
{{ if not .Data.Campaigns }}
{{ L.T "public.archiveEmpty" }}
{{ end }}
{{ if gt .Data.TotalPages 1 }}
<div class="pagination">{{ .Data.Pagination }}</div>
{{ end }}
</section>
{{ template "footer" .}}
{{ end }}