aboutsummaryrefslogtreecommitdiff
path: root/views/i18n/hfcs.html
blob: 75b6f4f5ea531d42121ab64192cf4b208e843a47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{{ template "header.html" . }}
<main>
<div class="info">
<p>
{{ .i18n.Hfcs }}
<form action="/savehfcs" method="POST">
<input type="hidden" name="CSRF" value="{{ .FilterCSRF }}">
<hr>
<h3>{{ .i18n.NewFilter }}</h3>
<p><label for="name">{{ .i18n.FilterName }}:</label><br>
<input tabindex=1 type="text" name="name" value="" autocomplete=off>
<p><label for="filtnotes">{{ .i18n.Notes }}:</label><br>
<textarea tabindex=1 name="filtnotes" height=4>
</textarea>
<hr>
<h3>{{ .i18n.Matches }}</h3>
<p><label for="actor">{{ .i18n.WhoWhere }}:</label><br>
<input tabindex=1 type="text" name="actor" value="" autocomplete=off>
<p><span><label class=button for="incaud">{{ .i18n.IncludeAudience }}:
<input tabindex=1 type="checkbox" id="incaud" name="incaud" value="yes"><span></span></label></span>
<p><label for="filttext">{{ .i18n.TextMatches }}:</label><br>
<input tabindex=1 type="text" name="filttext" value="" autocomplete=off>
<p><span><label class=button for="isannounce">{{ .i18n.IsAnnounce }}:
<input tabindex=1 type="checkbox" id="isannounce" name="isannounce" value="yes"><span></span></label></span>
<p><label for="announceof">{{ .i18n.AnnounceOf }}:</label><br>
<input tabindex=1 type="text" name="announceof" value="" autocomplete=off>
<hr>
<h3>action</h3>
<p class="buttonarray">
<span><label class=button for="doreject">{{ .i18n.Reject }}:
<input tabindex=1 type="checkbox" id="doreject" name="doreject" value="yes"><span></span></label></span>
<span><label class=button for="doskipmedia">{{ .i18n.SkipMedia }}:
<input tabindex=1 type="checkbox" id="doskipmedia" name="doskipmedia" value="yes"><span></span></label></span>
<span><label class=button for="dohide">{{ .i18n.Hide }}:
<input tabindex=1 type="checkbox" id="dohide" name="dohide" value="yes"><span></span></label></span>
<span><label class=button for="docollapse">{{ .i18n.Collapse }}:
<input tabindex=1 type="checkbox" id="docollapse" name="docollapse" value="yes"><span></span></label></span>
<p><label for="rewrite">{{ .i18n.Rewrite }}:</label><br>
<input tabindex=1 type="text" name="filtrewrite" value="" autocomplete=off>
<p><label for="replace">{{ .i18n.Replace }}:</label><br>
<input tabindex=1 type="text" name="filtreplace" value="" autocomplete=off>
<hr>
<h3>{{ .i18n.Expiration }}</h3>
<p><label for="filtduration">{{ .i18n.Duration }}:</label><br>
<input tabindex=1 type="text" name="filtduration" value="" autocomplete=off>
<hr>
<p><button>{{ .i18n.BanHammerBtn }}</button>
</form>
</div>
{{ $i18n := .i18n }}
{{ $csrf := .FilterCSRF }}
{{ range .Filters }}
<section class="honk">
<p>{{ $i18n.FilterName }}: {{ .Name }}
{{ with .Notes }}<p>{{ $i18n.Notes }}: {{ . }}{{ end }}
<p>Date: {{ .Date.Format "2006-01-02" }}
{{ with .Actor }}<p>{{ $i18n.Who }}: {{ . }}{{ end }} {{ with .IncludeAudience }} (inclusive) {{ end }}
{{ if .IsAnnounce }}<p>Announce: {{ .AnnounceOf }}{{ end }}
{{ with .Text }}<p>Text: {{ . }}{{ end }}
<p>{{ $i18n.Action }}: {{ range .Actions }} {{ . }} {{ end }}
{{ with .Rewrite }}<p>{{ $i18n.Rewrite }}: {{ . }}{{ end }}
{{ with .Replace }}<p>{{ $i18n.Replace }}: {{ . }}{{ end }}
{{ if not .Expiration.IsZero }}<p>{{ $i18n.Expiration }}: {{ .Expiration.Format "2006-01-02 03:04" }}{{ end }}
<form action="/savehfcs" method="POST">
<input type="hidden" name="CSRF" value="{{ $csrf }}">
<input type="hidden" name="hfcsid" value="{{ .ID }}">
<input type="hidden" name="itsok" value="iforgiveyou">
<button name="pardon" value="pardon">{{ $i18n.Pardon }}</button>
</form>
<p>
</section>
{{ end }}
</main>