File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 122122 <tr class= " {{DiffLineTypeToStr .GetType}}-code nl-{{$k}} ol-{{$k}}" >
123123 <td class= " lines-num lines-num-old" data-line-num= " {{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}" ><span rel= " {{if $line.LeftIdx}}diff-{{Sha1 $file.Name}}L{{$line.LeftIdx}}{{end}}" ></span></td>
124124 <td class= " lines-type-marker lines-type-marker-old" >{{if $line .LeftIdx }}<span class= " mono" data-type-marker= " {{$line.GetLineTypeMarker}}" ></span>{{end }}</td>
125- <td class= " lines-code lines-code-old halfwidth" >{{if and $ .SignedUserID $line .CanComment $ .PageIsPullFiles (not (eq .GetType 2))}}<a class= " ui green button add-code-comment add-code-comment-left" data-path= " {{$file.Name}}" data-side= " left" data-idx= " {{$line.LeftIdx}}" >+</a>{{end }}<span class= " mono wrap{{if $highlightClass}} language-{{$highlightClass}}{{else}}nohighlight{{end}}" >{{if $line .LeftIdx }}{{$section .GetComputedInlineDiffFor $line }}{{end }}</span></td>
125+ <td class= " lines-code lines-code-old halfwidth" >{{if and $ .SignedUserID $line .CanComment $ .PageIsPullFiles (not (eq .GetType 2))}}<a class= " ui green button add-code-comment add-code-comment-left" data-path= " {{$file.Name}}" data-side= " left" data-idx= " {{$line.LeftIdx}}" >+</a>{{end }}<span class= " mono wrap{{if $highlightClass}} language-{{$highlightClass}}{{else}} nohighlight{{end}}" >{{if $line .LeftIdx }}{{$section .GetComputedInlineDiffFor $line }}{{end }}</span></td>
126126 <td class= " lines-num lines-num-new" data-line-num= " {{if $line.RightIdx}}{{$line.RightIdx}}{{end}}" ><span rel= " {{if $line.RightIdx}}diff-{{Sha1 $file.Name}}R{{$line.RightIdx}}{{end}}" ></span></td>
127127 <td class= " lines-type-marker lines-type-marker-new" >{{if $line .RightIdx }}<span class= " mono" data-type-marker= " {{$line.GetLineTypeMarker}}" ></span>{{end }}</td>
128- <td class= " lines-code lines-code-new halfwidth" >{{if and $ .SignedUserID $line .CanComment $ .PageIsPullFiles (not (eq .GetType 3))}}<a class= " ui green button add-code-comment add-code-comment-right" data-path= " {{$file.Name}}" data-side= " right" data-idx= " {{$line.RightIdx}}" >+</a>{{end }}<span class= " mono wrap{{if $highlightClass}} language-{{$highlightClass}}{{else}}nohighlight{{end}}" >{{if $line .RightIdx }}{{$section .GetComputedInlineDiffFor $line }}{{end }}</span></td>
128+ <td class= " lines-code lines-code-new halfwidth" >{{if and $ .SignedUserID $line .CanComment $ .PageIsPullFiles (not (eq .GetType 3))}}<a class= " ui green button add-code-comment add-code-comment-right" data-path= " {{$file.Name}}" data-side= " right" data-idx= " {{$line.RightIdx}}" >+</a>{{end }}<span class= " mono wrap{{if $highlightClass}} language-{{$highlightClass}}{{else}} nohighlight{{end}}" >{{if $line .RightIdx }}{{$section .GetComputedInlineDiffFor $line }}{{end }}</span></td>
129129 </tr>
130130 {{if gt (len $line .Comments ) 0}}
131131 <tr class= " add-code-comment" >
Original file line number Diff line number Diff line change 1212 <td class= " lines-num lines-num-new" data-line-num= " {{if $line.RightIdx}}{{$line.RightIdx}}{{end}}" ><span rel= " {{if $line.RightIdx}}diff-{{Sha1 $file.Name}}R{{$line.RightIdx}}{{end}}" ></span></td>
1313 {{end }}
1414 <td class= " lines-type-marker" ><span class= " mono" data-type-marker= " {{$line.GetLineTypeMarker}}" ></span></td>
15- <td class= " lines-code{{if (not $line.RightIdx)}} lines-code-old{{end}}" >{{if and $ .root.SignedUserID $line .CanComment $ .root.PageIsPullFiles }}<a class= " ui green button add-code-comment add-code-comment-{{if $line.RightIdx}}right{{else}}left{{end}}" data-path= " {{$file.Name}}" data-side= " {{if $line.RightIdx}}right{{else}}left{{end}}" data-idx= " {{if $line.RightIdx}}{{$line.RightIdx}}{{else}}{{$line.LeftIdx}}{{end}}" >+</a>{{end }}<span class= " mono wrap{{if $highlightClass}} language-{{$highlightClass}}{{else}}nohighlight{{end}}" >{{$section .GetComputedInlineDiffFor $line }}</span></td>
15+ <td class= " lines-code{{if (not $line.RightIdx)}} lines-code-old{{end}}" >{{if and $ .root.SignedUserID $line .CanComment $ .root.PageIsPullFiles }}<a class= " ui green button add-code-comment add-code-comment-{{if $line.RightIdx}}right{{else}}left{{end}}" data-path= " {{$file.Name}}" data-side= " {{if $line.RightIdx}}right{{else}}left{{end}}" data-idx= " {{if $line.RightIdx}}{{$line.RightIdx}}{{else}}{{$line.LeftIdx}}{{end}}" >+</a>{{end }}<span class= " mono wrap{{if $highlightClass}} language-{{$highlightClass}}{{else}} nohighlight{{end}}" >{{$section .GetComputedInlineDiffFor $line }}</span></td>
1616 </tr>
1717 {{if gt (len $line .Comments ) 0}}
1818 <tr>
You can’t perform that action at this time.
0 commit comments