diff options
author | Miquel Lionel <lionelmiquel@sfr.fr> | 2021-02-18 17:25:32 +0100 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2021-02-18 17:25:32 +0100 |
commit | 4e513641d311f1a3895a13efb45179e7b88e5b6d (patch) | |
tree | 6f9bdd76b46072f7a2fbe42ce5f4cbbd8491a561 /v0.9.5/views/i18n/chatter.html | |
parent | c9129233298e6586e2242fd6892cd84531390b83 (diff) | |
download | honk_custom-4e513641d311f1a3895a13efb45179e7b88e5b6d.tar.gz honk_custom-4e513641d311f1a3895a13efb45179e7b88e5b6d.zip |
now this branch will work on tip
Diffstat (limited to 'v0.9.5/views/i18n/chatter.html')
-rw-r--r-- | v0.9.5/views/i18n/chatter.html | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/v0.9.5/views/i18n/chatter.html b/v0.9.5/views/i18n/chatter.html deleted file mode 100644 index 0173224..0000000 --- a/v0.9.5/views/i18n/chatter.html +++ /dev/null @@ -1,66 +0,0 @@ -{{ template "header.html" . }} -<main> -<div class="info"> -<p> -<form action="/sendchonk" method="POST" enctype="multipart/form-data"> -<h3>{{ .i18n.NewChatter }}</h3> -<input type="hidden" name="CSRF" value="{{ .ChonkCSRF }}"> -<p><label for=target>{{ .i18n.Target }}:</label><br> -<input type="text" name="target" value="" autocomplete=off> -<p><label for=noise>{{ .i18n.Noise }}:</label><br> -<textarea name="noise" id="noise"></textarea> -<p><button name="chonk" value="chonk">{{ .i18n.Chonk }}</button> -<label class=button id="donker">{{ .i18n.Attach }}: <input onchange="updatedonker(this);" type="file" name="donk"><span></span></label> -</form> -<script> -function updatedonker(el) { - el = el.parentElement - el.children[1].textContent = el.children[0].value.slice(-20) -} -</script> -</div> -{{ $chonkcsrf := .ChonkCSRF }} -{{ range .Chatter }} -<section class="honk"> -<p class="chattarget"> -chatter: {{ .Target }} -{{ $target := .Target }} -{{ range .Chonks }} -<div class="chat"> -<p> -<span class="chatstamp">{{ .Date.Local.Format "15:04" }} {{ .Handle }}:</span> -{{ .HTML }} -{{ range .Donks }} -{{ if .Local }} -{{ if eq .Media "text/plain" }} -<p><a href="/d/{{ .XID }}">{{ .i18n.Attachment }}: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} -{{ else if eq .Media "application/pdf" }} -<p><a href="/d/{{ .XID }}">{{ .i18n.Attachment }}: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} -{{ else }} -<p><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Desc }}"> -{{ end }} -{{ else }} -{{ if .XID }} -<p><a href="{{ .URL }}" rel=noreferrer>{{ .i18n.ExtAttachment }}: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} -{{ else }} -{{ if eq .Media "video/mp4" }} -<p><video controls src="{{ .URL }}">{{ .Name }}</video> -{{ else }} -<p><img src="{{ .URL }}" title="{{ .Desc }}" alt="{{ .Desc }}"> -{{ end }} -{{ end }} -{{ end }} -{{ end }} -</div> -{{ end }} -<form action="/sendchonk" method="POST" enctype="multipart/form-data"> -<input type="hidden" name="CSRF" value="{{ $chonkcsrf }}"> -<input type="hidden" name="target" value="{{ $target }}" autocomplete=off> -<p><label for=noise>{{ .i18n.Noise }}:</label><br> -<textarea name="noise" id="noise"></textarea> -<p><button name="chonk" value="chonk">{{ .i18n.Chonk }}</button> -<label class=button id="donker">{{ .i18n.Attach }}: <input onchange="updatedonker(this);" type="file" name="donk"><span></span></label> -</form> -</section> -{{ end }} -</main> |