diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index f6e49126b..61b278899 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -57,14 +57,12 @@
- {{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}} - | -{{$section.GetComputedInlineDiffFor $line}} | - {{else}} -- | {{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}} | - {{end}} -||||
- | - |
-
- {{if and $resolved (eq $line.GetCommentSide "previous")}}
-
-
- {{$resolveDoer.Name}} {{$.i18n.Tr "repo.issues.review.resolved_by"}}
-
-
-
- {{end}}
- {{if eq $line.GetCommentSide "previous"}}
-
-
- {{end}}
-
-
- {{template "repo/diff/comment_form_datahandler" dict "reply" (index $line.Comments 0).ReviewID "hidden" true "root" $ "comment" (index $line.Comments 0)}}
- {{if and $.CanMarkConversation $isNotPending}}
-
- {{end}}
- |
- - | - |
-
- {{if and $resolved (eq $line.GetCommentSide "proposed")}}
-
-
- {{$resolveDoer.Name}} {{$.i18n.Tr "repo.issues.review.resolved_by"}}
-
-
-
- {{end}}
- {{if eq $line.GetCommentSide "proposed"}}
-
-
- {{end}}
-
-
- {{template "repo/diff/comment_form_datahandler" dict "reply" (index $line.Comments 0).ReviewID "hidden" true "root" $ "comment" (index $line.Comments 0)}}
- {{if and $.CanMarkConversation $isNotPending}}
-
- {{end}}
- |
-
+ {{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}} + | +{{$section.GetComputedInlineDiffFor $line}} | + {{else}} ++ | {{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}} | {{end}} +||||
+ | + |
+
+ {{if and $resolved (eq $line.GetCommentSide "previous")}}
+
+
+ {{$resolveDoer.Name}} {{$.i18n.Tr "repo.issues.review.resolved_by"}}
+
+
+
+ {{end}}
+ {{if eq $line.GetCommentSide "previous"}}
+
+
+ {{end}}
+
+
+ {{template "repo/diff/comment_form_datahandler" dict "reply" (index $line.Comments 0).ReviewID "hidden" true "root" $ "comment" (index $line.Comments 0)}}
+ {{if and $.CanMarkConversation $isNotPending}}
+
+ {{end}}
+ |
+ + | + |
+
+ {{if and $resolved (eq $line.GetCommentSide "proposed")}}
+
+
+ {{$resolveDoer.Name}} {{$.i18n.Tr "repo.issues.review.resolved_by"}}
+
+
+
+ {{end}}
+ {{if eq $line.GetCommentSide "proposed"}}
+
+
+ {{end}}
+
+
+ {{template "repo/diff/comment_form_datahandler" dict "reply" (index $line.Comments 0).ReviewID "hidden" true "root" $ "comment" (index $line.Comments 0)}}
+ {{if and $.CanMarkConversation $isNotPending}}
+
+ {{end}}
+ |
+