{{define "title"}}Message Inbox{{end}} {{define "content"}}

Messages

Inbox

{{$UserMap := .UserMap}} {{$Request := .Request}}
{{if .ViewThread}}
{{InputCSRF}}

{{range .ViewThread}}
{{$SourceUser := $UserMap.Get .SourceUserID}}
{{if $SourceUser.ProfilePhoto.ID}} {{else}} {{end}}

{{or $SourceUser.Name "(no name)"}}

{{$SourceUser.Username}} {{if not $SourceUser.Certified}} Not Certified! {{end}} {{if $SourceUser.IsAdmin}} Admin {{end}}

{{ToMarkdown .Message}}
Sent on {{.CreatedAt.Format "2006-01-02 15:04:05"}}

{{end}}
Found {{.ThreadPager.Total}} message{{Pluralize64 .ThreadPager.Total}} in this thread (page {{.ThreadPager.Page}} of {{.ThreadPager.Pages}}).
{{if .ThreadPager.HasPrevious}} Previous {{end}} {{if .ThreadPager.HasNext}} Next Page {{end}}
{{else}}

You have {{.Unread}} unread message{{Pluralize64 .Unread}}. Select a message on the other column to read the conversation here.

{{end}}
Found {{.Pager.Total}} message{{Pluralize64 .Pager.Total}} (page {{.Pager.Page}} of {{.Pager.Pages}}).
{{if .Pager.HasPrevious}} Previous {{end}} {{if .Pager.HasNext}} Next Page {{end}}
{{end}}