1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 02:36:24 -07:00

Don't show the wordfilter table if there are none

This commit is contained in:
Eggbertx 2022-07-25 10:59:48 -07:00
parent fc882639d2
commit 7fbdc12b2c

View file

@ -15,6 +15,7 @@
</form>
<hr/>
<h2>Wordfilters</h2>
{{if eq 0 (len .wordfilters)}}<i>No wordfilters</i>{{else -}}
<table width="100%" border="1">
<colgroup><col width="10%"><col width="10%"><col width="10%"><col width="5%"><col width="15%"><col width="10%"></colgroup>
<tr><th>Actions</th><th>Search</th><th>Replace with</th><th>Is regex</th><th>Dirs</th><th>Created by</th><th>Staff note</th></tr>
@ -30,3 +31,4 @@
</tr>
{{end -}}
</table>
{{- end}}