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

Tip: you can "quote exact phrases" and -exclude words (or -"exclude phrases") from your search.

Reset
{{SimplePager .Pager}}
{{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}}
Date: {{.CreatedAt.Format "2006-01-02 15:04:05 MST"}}
{{if eq .Message ""}}

No message attached.

{{else}} {{ToMarkdown .Message}} {{end}} {{if eq .TableName "photos"}} {{$Photo := $Root.PhotoMap.Get .TableID}} {{if $Photo}} {{end}} {{end}}
{{end}}
{{end}}