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/honkpage.html | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 v0.9.5/views/i18n/honkpage.html (limited to 'v0.9.5/views/i18n/honkpage.html') diff --git a/v0.9.5/views/i18n/honkpage.html b/v0.9.5/views/i18n/honkpage.html new file mode 100644 index 0000000..0ae42ef --- /dev/null +++ b/v0.9.5/views/i18n/honkpage.html @@ -0,0 +1,45 @@ +{{ template "header.html" . }} +
+
+
+{{ if .Name }} +

{{ .Name }} rss +

{{ .WhatAbout }} +{{ end }} +

{{ .ServerMessage }} +

+{{ if .HonkCSRF }} +{{ template "honkform.html" . }} + + +{{ end }} +
+{{ if and .HonkCSRF (not .IsPreview) }} +
+

+ +

+{{ if eq .ServerMessage .i18n.MoarHonks }} {{ end }} +{{ end }} +
+
+{{ $BonkCSRF := .HonkCSRF }} +{{ $IsPreview := .IsPreview }} +{{ $MapLink := .MapLink }} +{{ $Badonk := .User.Options.Reaction }} +{{ $i18n := .i18n }} +{{ $OmitImages := .User.Options.OmitImages }} +{{ range .Honks }} +{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview "Badonk" $Badonk "OmitImages" $OmitImages "i18n" $i18n }} +{{ end }} +
+
+
-- cgit v1.2.3-70-g09d2