File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 122
122
<tr class="{{DiffLineTypeToStr .GetType}}-code nl-{{$k}} ol-{{$k}}">
123
123
<td class="lines-num lines-num-old">
124
124
<span rel="{{if $line.LeftIdx}}diff-{{Sha1 $file.Name}}L{{$line.LeftIdx}}{{end}}">{{if $line.LeftIdx}}{{$line.LeftIdx}}{{end}}</span>
125
-
126
125
</td>
127
126
<td class="lines-code lines-code-old halfwidth">
128
- {{if and $.root. SignedUserID $line.CanComment $.root. PageIsPullFiles}}
127
+ {{if and $.SignedUserID $line.CanComment $.PageIsPullFiles (not (eq .GetType 2)) }}
129
128
<a class="ui green button add-code-comment add-code-comment-left" data-path="{{$file.Name}}" data-side="left" data-idx="{{$line.LeftIdx}}">+</a>
130
129
{{end}}
131
130
<pre><code class="wrap {{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{if $line.LeftIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}</code></pre>
135
134
</td>
136
135
137
136
<td class="lines-code lines-code-new halfwidth">
138
- {{if and $.root. SignedUserID $line.CanComment}}
137
+ {{if and $.SignedUserID $line.CanComment $.PageIsPullFiles (not (eq .GetType 3)) }}
139
138
<a class="ui green button add-code-comment add-code-comment-right" data-path="{{$file.Name}}" data-side="right" data-idx="{{$line.RightIdx}}">+</a>
140
139
{{end}}
141
140
<pre><code class="wrap {{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{if $line.RightIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}</code></pre>
You can’t perform that action at this time.
0 commit comments