themes/sourcehut: use formatdate template func

This commit is contained in:
Simon Ser 2019-12-17 11:33:29 +01:00
parent 9404be1a32
commit b8407569f0
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -49,7 +49,7 @@
href="/message/{{$.Mailbox.Name | pathescape}}/{{.Uid}}?part={{.TextPartName}}" href="/message/{{$.Mailbox.Name | pathescape}}/{{.Uid}}?part={{.TextPartName}}"
> >
<span class="text-muted date"> <span class="text-muted date">
{{ .Envelope.Date.Format "Mon Jan 02 15:04" }} {{ .Envelope.Date | formatdate }}
</span> </span>
<span class="text-normal from"> <span class="text-normal from">
{{ range .Envelope.From }} {{ range .Envelope.From }}
@ -75,7 +75,7 @@
{{end}} {{end}}
</p> </p>
{{else}} {{else}}
<p>Mailbox is empty.</p> <p>No message.</p>
{{end}} {{end}}
</div> </div>
</div> </div>