mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-15 12:05:50 +08:00
25 lines
632 B
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 }}
|