From bd5d464a58a85c9118a4c9534a3a3cc2359505d4 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 18 Oct 2019 14:59:34 +0200 Subject: [PATCH 01/12] make diff-detail-box the main container --- templates/repo/diff/box.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 0179af2a515f..51c5971e54a6 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -16,7 +16,7 @@
- | {{if $line.LeftIdx}}{{end}} | -{{if and $.SignedUserID $line.CanComment $.PageIsPullFiles (not (eq .GetType 2))}}+{{end}}{{if $line.LeftIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}} | -- | {{if $line.RightIdx}}{{end}} | -{{if and $.SignedUserID $line.CanComment $.PageIsPullFiles (not (eq .GetType 3))}}+{{end}}{{if $line.RightIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}} | -||||||||||||
- | - |
- {{if eq $line.GetCommentSide "previous"}}
-
-
-
+ {{if ne $file.Type 4}}
+ {{$isImage := false}}
+ {{if $file.IsDeleted}}
+ {{$isImage = (call $.IsImageFileInBase $file.Name)}}
+ {{else}}
+ {{$isImage = (call $.IsImageFileInHead $file.Name)}}
+ {{end}}
+
+
- {{end}}
+
|