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

19 lines
774 B
HTML
Raw Normal View History

<a href="{{webPath `/manage/filters/`}}">Back to filter list</a> |
<a href="{{webPath `/manage/filters/`}}?edit={{$.filterID}}">Edit filter</a><br/>
{{- with .hits -}}
{{if eq $.staff.Rank 3 -}}
<form action="{{webPath `/manage/filters/hits`}}/{{$.filterID}}" method="POST">
<input type="submit" name="clearhits" value="Clear hits" onclick="return confirm('Are you sure you want to clear this filter\'s hits?')" />
</form>
{{- end}}
2024-08-28 21:54:10 -07:00
<table class="mgmt-table filterhitslist">
<colgroup>
<col class="row-date">
<col class="match-data">
</colgroup>
<tr><th>Match time</th><th>Post data</th></tr>
{{- range $h, $hit := . -}}
<tr><td>{{formatTimestamp $hit.MatchTime}}</td><td>{{index $.hitsJSON $h}}</td></tr>
{{- end -}}
</table>
{{- else}}<i>No hits</i>{{end}}