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}}