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/honk.html | 146 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 v0.9.5/views/i18n/honk.html (limited to 'v0.9.5/views/i18n/honk.html') diff --git a/v0.9.5/views/i18n/honk.html b/v0.9.5/views/i18n/honk.html new file mode 100644 index 0000000..52f63a7 --- /dev/null +++ b/v0.9.5/views/i18n/honk.html @@ -0,0 +1,146 @@ +
+{{ $bonkcsrf := .BonkCSRF }} +{{ $IsPreview := .IsPreview }} +{{ $maplink := .MapLink }} +{{ $omitimages := .OmitImages }} +{{ $i18n := .i18n }} +{{ $lang := .Lang }} +{{ with .Honk }} +
+{{ if $bonkcsrf }} + +{{ else }} + +{{ end }} + +{{ if $bonkcsrf }} {{ end }} +{{ if .Oonker }} +{{ if $bonkcsrf }} + +{{ else }} + +{{ end }} + +{{ if $bonkcsrf }} {{ end }} +{{ end }} +

+{{ if $bonkcsrf }} +{{ .Username }} +{{ else }} +{{ .Username }} +{{ end }} +{{ .What }} {{ .Date.Local.Format "02 Jan 2006 15:04 -0700" }} +{{ if .Oonker }} +
+ +{{ if $bonkcsrf }} +{{ $i18n.Original }}: {{ .Oondle }} +{{ else }} +{{ $i18n.Original }}: {{ .Oondle }} +{{ end }} + +{{ else }} +{{ if .RID }} +
+ +{{ $i18n.InReplyTo }}: {{ .RID }} + +{{ end }} +{{ end }} +
+{{ if $bonkcsrf }} + {{ $i18n.Convoy }}: {{ .Convoy }} +{{ else }} + {{ $i18n.Convoy }}: {{ .Convoy }} + +{{ end }} +

+

+

+{{ .HTPrecis }}

+

{{ .HTPrecis }} +

{{ .HTML }} +{{ with .Time }} +

{{ $i18n.Time }}: {{ .StartTime.Local.Format "03:04PM EDT Mon Jan 02"}} +{{ if .Duration }}
{{ $i18n.Duration }}: {{ .Duration }}{{ end }} +{{ end }} +{{ with .Place }} +

{{ $i18n.Location }}: {{ with .Url }}{{ end }}{{ .Name }}{{ if .Url }}{{ end }}{{ if or .Latitude .Longitude }} {{ .Latitude }} {{ .Longitude }}{{ end }} +{{ end }} +{{ 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 }} +{{ if $omitimages }} +

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

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

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

+{{ else }} +

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

+{{ end }} +{{ if and $bonkcsrf (not $IsPreview) }} +

+

+{{ $i18n.Actions }} +
+

+{{ if .Honk.Public }} +{{ if .Honk.IsBonked }} + +{{ else }} + +{{ end }} +{{ else }} + +{{ end }} + + + +

+ +
+

+{{ end }} +

-- cgit v1.2.3-70-g09d2