|
|
@ -13,7 +13,7 @@
|
|
|
|
{{range $k, $line := $section.Lines}}
|
|
|
|
{{range $k, $line := $section.Lines}}
|
|
|
|
{{$hasmatch := ne $line.Match -1}}
|
|
|
|
{{$hasmatch := ne $line.Match -1}}
|
|
|
|
{{if or (ne .GetType 2) (not $hasmatch)}}
|
|
|
|
{{if or (ne .GetType 2) (not $hasmatch)}}
|
|
|
|
<tr class="{{DiffLineTypeToStr .GetType}}-code nl-{{$k}} ol-{{$k}}" data-line-type="{{DiffLineTypeToStr .GetType}}">
|
|
|
|
<tr class="{{.GetHTMLDiffLineType}}-code nl-{{$k}} ol-{{$k}}" data-line-type="{{.GetHTMLDiffLineType}}">
|
|
|
|
{{if eq .GetType 4}}
|
|
|
|
{{if eq .GetType 4}}
|
|
|
|
<td class="lines-num lines-num-old">
|
|
|
|
<td class="lines-num lines-num-old">
|
|
|
|
{{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}}
|
|
|
|
{{if or (eq $line.GetExpandDirection 3) (eq $line.GetExpandDirection 5)}}
|
|
|
@ -107,7 +107,7 @@
|
|
|
|
{{if and (eq .GetType 3) $hasmatch}}
|
|
|
|
{{if and (eq .GetType 3) $hasmatch}}
|
|
|
|
{{$match := index $section.Lines $line.Match}}
|
|
|
|
{{$match := index $section.Lines $line.Match}}
|
|
|
|
{{if or (gt (len $line.Comments) 0) (gt (len $match.Comments) 0)}}
|
|
|
|
{{if or (gt (len $line.Comments) 0) (gt (len $match.Comments) 0)}}
|
|
|
|
<tr class="add-comment" data-line-type="{{DiffLineTypeToStr .GetType}}">
|
|
|
|
<tr class="add-comment" data-line-type="{{.GetHTMLDiffLineType}}">
|
|
|
|
<td class="add-comment-left" colspan="4">
|
|
|
|
<td class="add-comment-left" colspan="4">
|
|
|
|
{{if gt (len $line.Comments) 0}}
|
|
|
|
{{if gt (len $line.Comments) 0}}
|
|
|
|
{{if eq $line.GetCommentSide "previous"}}
|
|
|
|
{{if eq $line.GetCommentSide "previous"}}
|
|
|
@ -133,7 +133,7 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{else if gt (len $line.Comments) 0}}
|
|
|
|
{{else if gt (len $line.Comments) 0}}
|
|
|
|
<tr class="add-comment" data-line-type="{{DiffLineTypeToStr .GetType}}">
|
|
|
|
<tr class="add-comment" data-line-type="{{.GetHTMLDiffLineType}}">
|
|
|
|
<td class="add-comment-left" colspan="4">
|
|
|
|
<td class="add-comment-left" colspan="4">
|
|
|
|
{{if gt (len $line.Comments) 0}}
|
|
|
|
{{if gt (len $line.Comments) 0}}
|
|
|
|
{{if eq $line.GetCommentSide "previous"}}
|
|
|
|
{{if eq $line.GetCommentSide "previous"}}
|
|
|
|