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:
22
app/views/Mailbox/List.html
Normal file
22
app/views/Mailbox/List.html
Normal 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" .}}
|
||||
|
||||
Reference in New Issue
Block a user