@ -47,9 +47,9 @@
<td class="lines-type-marker lines-type-marker-old del-code"><span class="gt-mono" data-type-marker=" {{ $ line .GetLineTypeMarker }} "></span></td>
<td class="lines-code lines-code-old del-code"> {{ / *
*/}} {{ if and $ .root .SignedUserID $ .root .PageIsPullFiles }} {{ / *
*/}}<a class="ui primary button add-code-comment add-code-comment-left {{ if ( not $ line .CanComment ) }} invisible {{ end }} " data-side="left" data-idx=" {{ $ line .LeftIdx }} "> {{ / *
*/}}<button type="button" aria-label=" {{ $ .root .locale .Tr "repo.diff.comment.add_line_comment" }} " class="ui primary button add-code-comment add-code-comment-left {{ if ( not $ line .CanComment ) }} invisible {{ end }} " data-side="left" data-idx=" {{ $ line .LeftIdx }} "> {{ / *
*/}} {{ svg "octicon-plus" }} {{ / *
*/}}</a > {{ / *
*/}}</button > {{ / *
*/}} {{ end }} {{ / *
*/}} {{ if $ line .LeftIdx }} {{ / *
*/}} {{ template "repo/diff/section_code" dict "diff" $ leftDiff "locale" $ .root .locale }} {{ / *
@ -62,9 +62,9 @@
<td class="lines-type-marker lines-type-marker-new add-code"> {{ if $ match .RightIdx }} <span class="gt-mono" data-type-marker=" {{ $ match .GetLineTypeMarker }} "></span> {{ end }} </td>
<td class="lines-code lines-code-new add-code"> {{ / *
*/}} {{ if and $ .root .SignedUserID $ .root .PageIsPullFiles }} {{ / *
*/}}<a class="ui primary button add-code-comment add-code-comment-right {{ if ( not $ match .CanComment ) }} invisible {{ end }} " data-side="right" data-idx=" {{ $ match .RightIdx }} "> {{ / *
*/}}<button type="button" aria-label=" {{ $ .root .locale .Tr "repo.diff.comment.add_line_comment" }} " class="ui primary button add-code-comment add-code-comment-right {{ if ( not $ match .CanComment ) }} invisible {{ end }} " data-side="right" data-idx=" {{ $ match .RightIdx }} "> {{ / *
*/}} {{ svg "octicon-plus" }} {{ / *
*/}}</a > {{ / *
*/}}</button > {{ / *
*/}} {{ end }} {{ / *
*/}} {{ if $ match .RightIdx }} {{ / *
*/}} {{ template "repo/diff/section_code" dict "diff" $ rightDiff "locale" $ .root .locale }} {{ / *
@ -79,9 +79,9 @@
<td class="lines-type-marker lines-type-marker-old"> {{ if $ line .LeftIdx }} <span class="gt-mono" data-type-marker=" {{ $ line .GetLineTypeMarker }} "></span> {{ end }} </td>
<td class="lines-code lines-code-old"> {{ / *
*/}} {{ if and $ .root .SignedUserID $ .root .PageIsPullFiles ( not ( eq .GetType 2 ) ) }} {{ / *
*/}}<a class="ui primary button add-code-comment add-code-comment-left {{ if ( not $ line .CanComment ) }} invisible {{ end }} " data-side="left" data-idx=" {{ $ line .LeftIdx }} "> {{ / *
*/}}<button type="button" aria-label=" {{ $ .root .locale .Tr "repo.diff.comment.add_line_comment" }} " class="ui primary button add-code-comment add-code-comment-left {{ if ( not $ line .CanComment ) }} invisible {{ end }} " data-side="left" data-idx=" {{ $ line .LeftIdx }} "> {{ / *
*/}} {{ svg "octicon-plus" }} {{ / *
*/}}</a > {{ / *
*/}}</button > {{ / *
*/}} {{ end }} {{ / *
*/}} {{ if $ line .LeftIdx }} {{ / *
*/}} {{ template "repo/diff/section_code" dict "diff" $ inline Diff "locale" $ .root .locale }} {{ / *
@ -94,9 +94,9 @@
<td class="lines-type-marker lines-type-marker-new"> {{ if $ line .RightIdx }} <span class="gt-mono" data-type-marker=" {{ $ line .GetLineTypeMarker }} "></span> {{ end }} </td>
<td class="lines-code lines-code-new"> {{ / *
*/}} {{ if and $ .root .SignedUserID $ .root .PageIsPullFiles ( not ( eq .GetType 3 ) ) }} {{ / *
*/}}<a class="ui primary button add-code-comment add-code-comment-right {{ if ( not $ line .CanComment ) }} invisible {{ end }} " data-side="right" data-idx=" {{ $ line .RightIdx }} "> {{ / *
*/}}<button type="button" aria-label=" {{ $ .root .locale .Tr "repo.diff.comment.add_line_comment" }} " class="ui primary button add-code-comment add-code-comment-right {{ if ( not $ line .CanComment ) }} invisible {{ end }} " data-side="right" data-idx=" {{ $ line .RightIdx }} "> {{ / *
*/}} {{ svg "octicon-plus" }} {{ / *
*/}}</a > {{ / *
*/}}</button > {{ / *
*/}} {{ end }} {{ / *
*/}} {{ if $ line .RightIdx }} {{ / *
*/}} {{ template "repo/diff/section_code" dict "diff" $ inline Diff "locale" $ .root .locale }} {{ / *