diff --git a/templates/repo/diff/blob_excerpt.tmpl b/templates/repo/diff/blob_excerpt.tmpl
index b3e80881f..9bf0a7f99 100644
--- a/templates/repo/diff/blob_excerpt.tmpl
+++ b/templates/repo/diff/blob_excerpt.tmpl
@@ -21,23 +21,18 @@
{{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff.Content}} |
{{else}}
+ {{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}
|
+ {{if and $line.LeftIdx $inlineDiff.EscapeStatus.Escaped}}{{end}} |
{{if $line.LeftIdx}}{{end}} |
{{/*
- */}}{{if $line.LeftIdx}}{{/*
- */}}{{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff.Content}} {{/*
- */}}{{else}}{{/*
- */}} {{/*
- */}}{{end}}{{/*
- */}} |
+ */}}{{if $line.LeftIdx}}{{$inlineDiff.Content}}{{end}}
{{/*
+ */}}
|
+ {{if and $line.RightIdx $inlineDiff.EscapeStatus.Escaped}}{{end}} |
{{if $line.RightIdx}}{{end}} |
{{/*
- */}}{{if $line.RightIdx}}{{/*
- */}}{{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff.Content}} {{/*
- */}}{{else}}{{/*
- */}} {{/*
- */}}{{end}}{{/*
+ */}}{{if $line.RightIdx}}{{$inlineDiff.Content}}{{end}} {{/*
*/}} |
{{end}}
@@ -67,8 +62,10 @@
|
|
{{end}}
+ {{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}
+ {{if $inlineDiff.EscapeStatus.Escaped}}{{end}} |
|
- {{$inlineDiff := $.section.GetComputedInlineDiffFor $line}}{{$inlineDiff.Content}} |
+ {{$inlineDiff.Content}} |
{{end}}
{{end}}
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js
index 7a62cf270..69911a173 100644
--- a/web_src/js/features/repo-issue.js
+++ b/web_src/js/features/repo-issue.js
@@ -505,7 +505,9 @@ export function initRepoPullRequestReview() {
|
` : `
- |
+ |
+ |
+ |
`}
`);
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index a2c40b3f0..76ca5dff7 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -3186,7 +3186,7 @@ td.blob-excerpt {
background: var(--color-diff-inactive);
}
-.code-diff-split tbody tr td:nth-child(4) {
+.code-diff-split tbody tr td:nth-child(5) {
border-left: 1px solid var(--color-secondary);
}