diff options
Diffstat (limited to 'public/mailbox.html')
-rw-r--r-- | public/mailbox.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/public/mailbox.html b/public/mailbox.html index e56efcb..435998c 100644 --- a/public/mailbox.html +++ b/public/mailbox.html @@ -20,10 +20,23 @@ <ul> {{range .Messages}} <li><a href="/message/{{$.Mailbox.Name | pathescape}}/{{.Uid}}?part={{.TextPartName}}"> - {{.Envelope.Subject}} + {{if .Envelope.Subject}} + {{.Envelope.Subject}} + {{else}} + (No subject) + {{end}} </a></li> {{end}} </ul> + + <p> + {{if ge .PrevPage 0}} + <a href="?page={{.PrevPage}}">Prev</a> + {{end}} + {{if ge .NextPage 0}} + <a href="?page={{.NextPage}}">Next</a> + {{end}} + </p> {{else}} <p>Mailbox is empty.</p> {{end}} |