2022-07-26 12:13:27 -07:00
{{if eq 0 (len .reports)}}< i > No reports< / i > {{else -}}
2024-03-08 14:50:28 -08:00
< table id = "reportstable" class = "mgmt-table" >
2022-07-27 11:19:03 -07:00
< tr > < th > Post< / th > < th > Reason< / th > < th > Reporter IP< / th > < th > Staff assigned< / th > < th > Actions< / th > < / tr >
2022-07-26 12:13:27 -07:00
{{range $r,$report := .reports}}
< tr > < td > < a href = "{{$report.post_link}}" > Link< / a > < / td > < td > {{$report.reason}}< / td > < td > {{$report.ip}}< / td > < td >
{{- if (lt $report.staff_id 1) -}}
< i > unassigned< / i >
{{- else -}}
{{$report.staff_user}}
{{- end -}}
2024-03-08 14:50:28 -08:00
< / td > < td class = "table-actions" >
2023-01-04 15:33:50 -08:00
< a href = "{{webPath " manage / reports ? dismiss = "}}{{$report.id}}" > Dismiss< / a >
2022-07-27 11:19:03 -07:00
{{if eq $.staff.Rank 3 -}}
|
2023-01-04 15:33:50 -08:00
< a href = "{{webPath " manage / reports ? dismiss = "}}{{$report.id}}&block=1" title = "Prevent future reports of this post, regardless of report reason" > Make post unreportable< / a >
2022-07-27 11:19:03 -07:00
{{- end}}
2022-07-26 12:13:27 -07:00
< / td > < / tr >
{{end}}
< / table >
{{end}}