]> source.dussan.org Git - gitea.git/commitdiff
Fix double blob-hunk on diff page (#19404) (#19405)
authorGusted <williamzijl7@hotmail.com>
Fri, 15 Apr 2022 03:27:04 +0000 (03:27 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Apr 2022 03:27:04 +0000 (11:27 +0800)
- Don't show the blob-hunk twice on diff page
- Backport #19404

templates/repo/diff/section_unified.tmpl

index dbd0ca269f33c4badcc3da3aa63249d68a3633e2..4aac9483675cd53d5c1e10acde4021b086ce7a6e 100644 (file)
@@ -32,7 +32,6 @@
                                        <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>
                                {{else}}
                                        <td class="chroma lines-code{{if (not $line.RightIdx)}} lines-code-old{{end}}">{{/*