diff options
author | Gusted <williamzijl7@hotmail.com> | 2022-04-15 11:43:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 19:43:38 +0800 |
commit | 9053096f1f62d155a60431093aea062ac784eba6 (patch) | |
tree | 650870a618eaa44a97817015cfd2ecd8883dda08 /templates | |
parent | b8911fb45673fdc3fce587892c4d9215e7c15019 (diff) | |
download | gitea-9053096f1f62d155a60431093aea062ac784eba6.tar.gz gitea-9053096f1f62d155a60431093aea062ac784eba6.zip |
Fix double blob-hunk (#19404)
- Don't show the blob-hunk twice.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/diff/section_unified.tmpl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl index dbd0ca269f..2fe3f64903 100644 --- a/templates/repo/diff/section_unified.tmpl +++ b/templates/repo/diff/section_unified.tmpl @@ -31,9 +31,7 @@ {{if eq .GetType 4}} <td class="chroma lines-code blob-hunk">{{/* */}}<code {{if $inlineDiff.EscapeStatus.Escaped}}class="code-inner has-escaped" title="{{$.root.i18n.Tr "repo.line_unicode"}}"{{else}}class="code-inner"{{end}}>{{$inlineDiff.Content}}</code>{{/* - */}} - {{$line.Content}} - </td> + */}}</td> {{else}} <td class="chroma lines-code{{if (not $line.RightIdx)}} lines-code-old{{end}}">{{/* */}}{{if and $.root.SignedUserID $.root.PageIsPullFiles}}{{/* |