2019-12-09 13:59:58 +00:00
|
|
|
{{template "head.html"}}
|
2019-12-02 14:31:00 +00:00
|
|
|
|
|
|
|
<h1>koushin</h1>
|
|
|
|
|
2019-12-03 13:33:20 +00:00
|
|
|
<p>
|
|
|
|
<a href="/logout">Logout</a> · <a href="/compose">Compose</a>
|
|
|
|
</p>
|
2019-12-03 12:24:46 +00:00
|
|
|
|
2019-12-02 18:53:09 +00:00
|
|
|
<h2>{{.Mailbox.Name}}</h2>
|
|
|
|
|
2019-12-02 16:31:34 +00:00
|
|
|
<p>Mailboxes:</p>
|
|
|
|
<ul>
|
|
|
|
{{range .Mailboxes}}
|
2019-12-03 16:31:53 +00:00
|
|
|
<li><a href="/mailbox/{{.Name | pathescape}}">{{.Name}}</a></li>
|
2019-12-02 16:31:34 +00:00
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
|
2019-12-03 16:52:56 +00:00
|
|
|
{{if .Messages}}
|
|
|
|
<p>Messages:</p>
|
|
|
|
<ul>
|
|
|
|
{{range .Messages}}
|
|
|
|
<li><a href="/message/{{$.Mailbox.Name | pathescape}}/{{.Uid}}?part={{.TextPartName}}">
|
2019-12-03 18:48:28 +00:00
|
|
|
{{if .Envelope.Subject}}
|
|
|
|
{{.Envelope.Subject}}
|
|
|
|
{{else}}
|
|
|
|
(No subject)
|
|
|
|
{{end}}
|
2019-12-03 16:52:56 +00:00
|
|
|
</a></li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
2019-12-03 18:48:28 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
{{if ge .PrevPage 0}}
|
|
|
|
<a href="?page={{.PrevPage}}">Prev</a>
|
|
|
|
{{end}}
|
2019-12-03 18:51:44 +00:00
|
|
|
{{if and (ge .PrevPage 0) (ge .NextPage 0)}}·{{end}}
|
2019-12-03 18:48:28 +00:00
|
|
|
{{if ge .NextPage 0}}
|
|
|
|
<a href="?page={{.NextPage}}">Next</a>
|
|
|
|
{{end}}
|
|
|
|
</p>
|
2019-12-03 16:52:56 +00:00
|
|
|
{{else}}
|
|
|
|
<p>Mailbox is empty.</p>
|
|
|
|
{{end}}
|
2019-12-02 17:21:45 +00:00
|
|
|
|
2019-12-09 13:59:58 +00:00
|
|
|
{{template "foot.html"}}
|