1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-01-09 20:55:56 +00:00

Add a controller to view list mailbox contents, view individual

messages.
This commit is contained in:
James Hillyerd
2012-10-10 13:46:03 -07:00
parent 4bcb7391c8
commit 3fe4c937cd
5 changed files with 163 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
{{template "header.html" .}}
<h1>Your Index Is Ready</h1>
{{$name := .name}}
<p>{{.name}} inbox</p>
{{if .messages}}
<ul>
{{range .messages}}
<li>
<a href="/mailbox/show/{{$name}}/{{.Id}}">{{.Subject}}</a>
from {{.From}}
({{.Date}})
</li>
{{end}}
</ul>
{{else}}
<p>No messages!</p>
{{end}}
{{template "footer.html" .}}