From d137820037d8f75ce8c314abf4e2248e664019f6 Mon Sep 17 00:00:00 2001 From: Thomas Miceli <27960254+thomiceli@users.noreply.github.com> Date: Fri, 29 Sep 2023 06:32:09 +0200 Subject: [PATCH] Add missing $ in templates (#122) --- templates/pages/gist.html | 4 ++-- templates/pages/revisions.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/pages/gist.html b/templates/pages/gist.html index 1e04dea..7e9eca0 100644 --- a/templates/pages/gist.html +++ b/templates/pages/gist.html @@ -34,12 +34,12 @@ {{ if $file.Truncated }}
- {{ .locale.Tr "gist.file-truncated" }} {{ .locale.Tr "gist.watch-full-file" }}. + {{ $.locale.Tr "gist.file-truncated" }} {{ $.locale.Tr "gist.watch-full-file" }}.
{{ end }} {{ if and (not $csv) (isCsv $file.Filename) }}
- {{ .locale.Tr "gist.file-not-valid" }} + {{ $.locale.Tr "gist.file-not-valid" }}
{{ end }} diff --git a/templates/pages/revisions.html b/templates/pages/revisions.html index 45cd802..5bc06af 100644 --- a/templates/pages/revisions.html +++ b/templates/pages/revisions.html @@ -44,11 +44,11 @@
{{ if $file.Truncated }} -

{{ .locale.Tr "gist.revision.diff-truncated" }}

+

{{ $.locale.Tr "gist.revision.diff-truncated" }}

{{ else if and (eq $file.Content "") (ne $file.OldFilename "") }} -

{{ .locale.Tr "gist.revision.file-renamed-no-changes" }}

+

{{ $.locale.Tr "gist.revision.file-renamed-no-changes" }}

{{ else if eq $file.Content "" }} -

{{ .locale.Tr "gist.revision.empty-file" }}

+

{{ $.locale.Tr "gist.revision.empty-file" }}

{{ else }} @@ -91,7 +91,7 @@ {{end}} {{else}} -

{{ .locale.Tr "gist.revision.no-changes" }}

+

{{ $.locale.Tr "gist.revision.no-changes" }}

{{end}}