diff --git a/templates/repo/blame.tmpl b/templates/repo/blame.tmpl
index c3e2d56af3..e6bf1cc96f 100644
--- a/templates/repo/blame.tmpl
+++ b/templates/repo/blame.tmpl
@@ -11,8 +11,8 @@
{{end}}
{{.locale.Tr "repo.normal_view"}}
{{.locale.Tr "repo.file_history"}}
- {{.locale.Tr "repo.unescape_control_characters"}}
- {{.locale.Tr "repo.escape_control_characters"}}
+
+
@@ -52,7 +52,7 @@
{{if $.EscapeStatus.Escaped}}
{{if $row.EscapeStatus.Escaped}}
-
+
{{end}}
|
{{end}}
diff --git a/templates/repo/diff/blob_excerpt.tmpl b/templates/repo/diff/blob_excerpt.tmpl
index 7e11b33ba6..ab7abdbd7b 100644
--- a/templates/repo/diff/blob_excerpt.tmpl
+++ b/templates/repo/diff/blob_excerpt.tmpl
@@ -3,28 +3,30 @@
{{if eq .GetType 4}}
+
|
{{$inlineDiff := $.section.GetComputedInlineDiffFor $line $.locale}}{{/*
*/}}{{template "repo/diff/section_code" dict "diff" $inlineDiff "locale" $.locale}} |
{{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}}{{/*
@@ -32,7 +34,7 @@
*/}}{{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}}{{/*
@@ -47,28 +49,30 @@
|
{{if eq .GetType 4}}
- {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}}
-
- {{svg "octicon-fold-down"}}
-
- {{end}}
- {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4)}}
-
- {{svg "octicon-fold-up"}}
-
- {{end}}
- {{if eq $line.GetExpandDirection 2}}
-
- {{svg "octicon-fold"}}
-
- {{end}}
+
+ {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}}
+
+ {{end}}
+ {{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 4)}}
+
+ {{end}}
+ {{if eq $line.GetExpandDirection 2}}
+
+ {{end}}
+
|
{{else}}
|
|
{{end}}
{{$inlineDiff := $.section.GetComputedInlineDiffFor $line $.locale}}
- {{if $inlineDiff.EscapeStatus.Escaped}}{{end}} |
+ {{if $inlineDiff.EscapeStatus.Escaped}}{{end}} |
|
{{$inlineDiff.Content}} |
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 26b863acea..740b39dbd5 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -90,13 +90,13 @@