From 2430bf57c22948e66b2c918d324d6e0bff4f6792 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Wed, 17 Feb 2021 13:48:13 +0100 Subject: add i18n'd html templates, newer patch for web.go --- v0.9.5/views/i18n/chatter.html | 66 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 v0.9.5/views/i18n/chatter.html (limited to 'v0.9.5/views/i18n/chatter.html') diff --git a/v0.9.5/views/i18n/chatter.html b/v0.9.5/views/i18n/chatter.html new file mode 100644 index 0000000..0173224 --- /dev/null +++ b/v0.9.5/views/i18n/chatter.html @@ -0,0 +1,66 @@ +{{ template "header.html" . }} +
+
+

+

+

{{ .i18n.NewChatter }}

+ +


+ +


+ +

+ +

+ +
+{{ $chonkcsrf := .ChonkCSRF }} +{{ range .Chatter }} +
+

+chatter: {{ .Target }} +{{ $target := .Target }} +{{ range .Chonks }} +

+

+{{ .Date.Local.Format "15:04" }} {{ .Handle }}: +{{ .HTML }} +{{ range .Donks }} +{{ if .Local }} +{{ if eq .Media "text/plain" }} +

{{ .i18n.Attachment }}: {{ .Name }}{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else if eq .Media "application/pdf" }} +

{{ .i18n.Attachment }}: {{ .Name }}{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else }} +

{{ .Desc }} +{{ end }} +{{ else }} +{{ if .XID }} +

{{ .i18n.ExtAttachment }}: {{ .Name }}{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else }} +{{ if eq .Media "video/mp4" }} +

+{{ else }} +

{{ .Desc }} +{{ end }} +{{ end }} +{{ end }} +{{ end }} +

+{{ end }} +
+ + +


+ +

+ +

+
+{{ end }} +
-- cgit v1.2.3-70-g09d2