diff options
author | Miquel Lionel <lionelmiquel@sfr.fr> | 2021-02-17 13:48:13 +0100 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2021-02-17 13:48:13 +0100 |
commit | 2430bf57c22948e66b2c918d324d6e0bff4f6792 (patch) | |
tree | 0d79e5d8b5780d6c8d625de50d784a7da3a2a26b /v0.9.5/views/i18n/hfcs.html | |
parent | 19cfd918aa30f316754b118278fc6853d7b8e04b (diff) | |
download | honk_custom-2430bf57c22948e66b2c918d324d6e0bff4f6792.tar.gz honk_custom-2430bf57c22948e66b2c918d324d6e0bff4f6792.zip |
add i18n'd html templates, newer patch for web.go
Diffstat (limited to 'v0.9.5/views/i18n/hfcs.html')
-rw-r--r-- | v0.9.5/views/i18n/hfcs.html | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/v0.9.5/views/i18n/hfcs.html b/v0.9.5/views/i18n/hfcs.html new file mode 100644 index 0000000..75b6f4f --- /dev/null +++ b/v0.9.5/views/i18n/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> |