diff --git a/templates/admin/base/search.tmpl b/templates/admin/base/search.tmpl
index 865cc8830f308..22f839bf0585e 100644
--- a/templates/admin/base/search.tmpl
+++ b/templates/admin/base/search.tmpl
@@ -1,7 +1,7 @@
@@ -45,25 +45,25 @@
very long aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
- {{template "base/modal_actions_confirm" (dict "locale" $.locale)}}
+ {{template "base/modal_actions_confirm"}}
hello, this is the modal dialog content
- {{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonTypes" "confirm")}}
+ {{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
hello, this is the modal dialog content
- {{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonColors" "blue")}}
+ {{template "base/modal_actions_confirm" (dict "ModalButtonColors" "blue")}}
hello, this is the modal dialog content
- {{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonColors" "yellow")}}
+ {{template "base/modal_actions_confirm" (dict "ModalButtonColors" "yellow")}}
- {{template "base/modal_actions_confirm" (dict "locale" $.locale "ModalButtonTypes" "confirm")}}
+ {{template "base/modal_actions_confirm" (dict "ModalButtonTypes" "confirm")}}
{{template "base/footer" .}}
diff --git a/templates/repo/commit_statuses.tmpl b/templates/repo/commit_statuses.tmpl
index 20a59bf0d7171..0006dcb4a70dd 100644
--- a/templates/repo/commit_statuses.tmpl
+++ b/templates/repo/commit_statuses.tmpl
@@ -14,7 +14,7 @@
{{template "repo/commit_status" .}}
{{.Context}} {{.Description}}
{{if .TargetURL}}
- {{$.root.locale.Tr "repo.pulls.status_checks_details"}}
+ {{ctx.Locale.Tr "repo.pulls.status_checks_details"}}
{{end}}
{{end}}
diff --git a/templates/repo/diff/blob_excerpt.tmpl b/templates/repo/diff/blob_excerpt.tmpl
index 23149f611a459..feb2aa5738e4e 100644
--- a/templates/repo/diff/blob_excerpt.tmpl
+++ b/templates/repo/diff/blob_excerpt.tmpl
@@ -22,22 +22,22 @@
{{$inlineDiff := $.section.GetComputedInlineDiffFor $line $.locale}}{{/*
- */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff "locale" $.locale}}
+ */}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}
{{else}}
{{$inlineDiff := $.section.GetComputedInlineDiffFor $line $.locale}}
- {{if and $line.LeftIdx $inlineDiff.EscapeStatus.Escaped}} {{end}}
+ {{if and $line.LeftIdx $inlineDiff.EscapeStatus.Escaped}} {{end}}
{{if $line.LeftIdx}} {{end}}
{{/*
- */}}{{if $line.LeftIdx}}{{template "repo/diff/section_code" dict "diff" $inlineDiff "locale" $.locale}}{{else}}{{/*
+ */}}{{if $line.LeftIdx}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{else}}{{/*
*/}}
{{/*
*/}}{{end}}{{/*
*/}}
- {{if and $line.RightIdx $inlineDiff.EscapeStatus.Escaped}} {{end}}
+ {{if and $line.RightIdx $inlineDiff.EscapeStatus.Escaped}} {{end}}
{{if $line.RightIdx}} {{end}}
{{/*
- */}}{{if $line.RightIdx}}{{template "repo/diff/section_code" dict "diff" $inlineDiff "locale" $.locale}}{{else}}{{/*
+ */}}{{if $line.RightIdx}}{{template "repo/diff/section_code" dict "diff" $inlineDiff}}{{else}}{{/*
*/}}
{{/*
*/}}{{end}}{{/*
*/}}
@@ -72,9 +72,9 @@
{{end}}
{{$inlineDiff := $.section.GetComputedInlineDiffFor $line $.locale}}
- {{if $inlineDiff.EscapeStatus.Escaped}} {{end}}
+ {{if $inlineDiff.EscapeStatus.Escaped}} {{end}}
- {{$inlineDiff.Content}}
+ {{$inlineDiff.Content}}
{{end}}
{{end}}
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 2e1461226aea4..ff3fc7aef74ec 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -225,7 +225,6 @@