1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-26 10:36:23 -07:00
gochan/templates/manage_reports.html

29 lines
No EOL
1.1 KiB
HTML

{{if eq 0 (len .reports)}}<i>No reports</i>{{else -}}
<form action="{{webPath `/manage/reports`}}" method="POST" onsubmit="return confirm('Are you sure you want to continue?');">
<input type="submit" name="dismiss-all" value="Dismiss All">
<input type="submit" name="dismiss-sel" value="Dismiss Selected">
{{if eq $.staff.Rank 3 -}}
<input type="submit" name="block-sel" value="Make Selected Unreportable">
{{- end -}}
<table id="reportstable" class="mgmt-table">
<colgroup>
<col style="width: 5%;">
<col style="width: 5%;">
<col style="width: 55%;">
<col style="width: 20%;">
<col style="width: 15%;">
</colgroup>
<tr><th></th><th>Post</th><th>Reason</th><th>Reporter IP</th><th>Staff assigned</th></tr>
{{range $r,$report := .reports}}
<tr>
<td class="text-center"><input type="checkbox" name="report{{$report.ID}}"></td>
<td class="text-center"><a href="{{$report.PostLink}}">Link</a></td>
<td>{{$report.Reason}}</td>
<td class="text-center">{{$report.IP}}</td>
<td class="text-center {{if eq $report.HandledByStaffID nil}}text-italic{{end}}">
{{$report.StaffUser}}
</td>
</tr>{{end}}
</table>
</form>{{end}}