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

Messages

{{if .IsSentBox}}Sent{{else}}Inbox{{end}}

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

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

{{$SourceUser.NameOrUsername}}

{{$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}}