diff options
author | Simon Ser <contact@emersion.fr> | 2020-03-19 18:03:13 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-03-19 18:03:13 +0100 |
commit | c182fbde6334f07873700d6a487155fb3f493403 (patch) | |
tree | 11089f6315dbc9a21300f546ffa5abb8c09a53c4 /themes/alps/mailbox.html | |
parent | 9eac0b453a21918f7533e78aa0fbb4d07cdbf474 (diff) | |
download | alps-c182fbde6334f07873700d6a487155fb3f493403.tar.gz alps-c182fbde6334f07873700d6a487155fb3f493403.zip |
themes/alps: new theme
Diffstat (limited to 'themes/alps/mailbox.html')
-rw-r--r-- | themes/alps/mailbox.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/themes/alps/mailbox.html b/themes/alps/mailbox.html new file mode 100644 index 0000000..6d870ba --- /dev/null +++ b/themes/alps/mailbox.html @@ -0,0 +1,66 @@ +{{template "head.html"}} +{{template "nav.html" . }} + +<div class="page-wrap"> + <aside> + <!-- the logo image, dimensions 200x32 may be present or not --> + <a href="/compose" class="compose-mail">Compose Mail</a> + {{$current := .Mailbox}} + {{range .Mailboxes}} + <a href="/mailbox/{{.Name | pathescape}}" + {{ if eq $current.Name .Name }}class="active"{{ end }}> + {{ if eq .Name "INBOX" }} + Inbox + {{else}} + {{.Name}} + {{end}} + {{ if eq $current.Name .Name }} + {{ if $current.Unseen }}({{ $current.Unseen }}){{ end }} + {{ end }} + </a> + {{end}} + </aside> + + <div class="container"> + <form id="messages-form" method="post"></form> + <main> + <table> + <thead> + {{ template "messages-header.html" . }} + </thead> + <tbody> + {{range .Messages}} + <tr data="{{.Flags}}" class="message-list-item {{ if not (.HasFlag "\\Seen") }}message-list-unread{{ end }}"> + <td width="1%" class="message-list-checkbox"> + <input type="checkbox" name="uids" value="{{.Uid}}" form="messages-form"> + </td> + <td width="10%" class="message-list-sender"> + {{ range .Envelope.From }} + {{ if .PersonalName }} + {{.PersonalName}} + {{ else }} + {{.MailboxName}}@{{.HostName}} + {{ end }} + {{ end }} + </td> + <td width="80%" class="message-list-subject"> + <a href="/message/{{$.Mailbox.Name | pathescape}}/{{.Uid}}?part={{.TextPartName}}"> + {{if .Envelope.Subject}} + {{.Envelope.Subject}} + {{else}} + (No subject) + {{end}} + </a> + </td> + <td width="9%" nowrap="" class="message-list-date">{{ .Envelope.Date | formatdate }}</td> + </tr> + {{ end }} + </tbody> + <tfoot> + {{ template "messages-header.html" .}} + </tfoot> + </table> + </main> + </div> +</div> +{{template "foot.html"}} |