diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2021-06-17 22:30:49 +0100 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2021-06-17 22:31:25 +0100 |
commit | 015a31a14f5de5a1c7aa3dc71175eb0c2fe58b30 (patch) | |
tree | 81cf315da47e263a79a892428240502cf0f7d079 /i18n_views/hfcs.html | |
parent | bf1a991d4337ebc15ed4e52176c8acf382ef0701 (diff) | |
download | honk_custom-015a31a14f5de5a1c7aa3dc71175eb0c2fe58b30.tar.gz honk_custom-015a31a14f5de5a1c7aa3dc71175eb0c2fe58b30.zip |
shorter patch names, updated README.md, new Makefile
Diffstat (limited to 'i18n_views/hfcs.html')
-rw-r--r-- | i18n_views/hfcs.html | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/i18n_views/hfcs.html b/i18n_views/hfcs.html new file mode 100644 index 0000000..75b6f4f --- /dev/null +++ b/i18n_views/hfcs.html @@ -0,0 +1,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> |