{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin")}}

{{ctx.Locale.Tr "admin.moderation.reports"}}

{{if .Reports}}
{{svg .ContentTypeIconName 24}}
{{if .ContentURL}}{{.ContentReference}}{{else}}{{.ContentReference}}{{end}} {{if .Poster}} — {{.Poster}}{{end}}
{{end}}
{{if .Reports}}
{{range .Reports}}
{{svg "octicon-calendar"}} {{DateUtils.AbsoluteShort .CreatedUnix}} {{svg "octicon-report"}} {{if .ReporterName}}{{.ReporterName}}{{else}}{{$.GhostUserName}}{{end}} {{svg "octicon-tag" 12}} {{ctx.Locale.Tr (index $.AbuseCategories .Category)}}
{{.Remarks}}
{{if .ShadowCopyID.Valid}}
{{DateUtils.FullTime .ShadowCopyDate}} shadow copy {{range $scField := (call $.GetShadowCopyMap $.Context .)}} {{end}}
{{$scField.Key}} {{$scField.Value}}
{{end}}
{{end}}
{{else}}

{{ctx.Locale.Tr "admin.moderation.no_open_reports"}}

{{end}}
{{template "admin/layout_footer" .}}