{{define "title"}}Admin - Feedback & User Reports{{end}} {{define "content"}} {{$Root := .}}

Feedback & User Reports

There {{Pluralize64 .Pager.Total "is" "are"}} {{.Pager.Total}} {{if .Acknowledged}}acknowledged{{else}}unread{{end}} {{if eq .Intent "report"}}report{{else}}feedback message{{end}}{{Pluralize64 .Pager.Total}}.
{{if .Pager}} {{end}}
{{range .Feedback}}
{{$User := $Root.UserMap.Get .UserID}}
{{InputCSRF}}

{{if eq .Intent "report"}} Report: {{.Subject}} {{else}} Contact: {{.Subject}} {{end}}

Intent: {{.Intent}}
Subject: {{.Subject}}
Table: {{if eq .TableName ""}} n/a {{if ne .TableID 0}} - {{.TableID}}{{end}} {{else if eq .TableName "users"}} Users: {{.TableID}} {{else if eq .TableName "photos"}} Photos: {{.TableID}} {{else if eq .TableName "messages"}} Messages: {{.TableID}} {{else}} {{.TableName}}: {{.TableID}} {{end}}
Reply To: {{if $User}} {{$User.Username}} {{else if ne .ReplyTo ""}} {{.ReplyTo}} {{else}} n/a {{end}}
{{if eq .Message ""}}

No message attached.

{{else}} {{ToMarkdown .Message}} {{end}}
{{end}}
{{end}}