|
166 | 166 | <td class="lines-num"></td>
|
167 | 167 | <td class="lines-type-marker"></td>
|
168 | 168 | <td class="add-comment-left">
|
169 |
| - {{if and $resolved (eq $line.GetCommentSide "previous")}} |
170 |
| - <div class="ui top attached header"> |
171 |
| - <span class="ui grey text left"><b>{{$resolveDoer.Name}}</b> {{$.i18n.Tr "repo.issues.review.resolved_by"}}</span> |
172 |
| - <button id="show-outdated-{{(index $line.Comments 0).ID}}" data-comment="{{(index $line.Comments 0).ID}}" class="ui compact right labeled button show-outdated"> |
173 |
| - {{svg "octicon-unfold"}} |
174 |
| - {{$.i18n.Tr "repo.issues.review.show_resolved"}} |
175 |
| - </button> |
176 |
| - <button id="hide-outdated-{{(index $line.Comments 0).ID}}" data-comment="{{(index $line.Comments 0).ID}}" class="hide ui compact right labeled button hide-outdated"> |
177 |
| - {{svg "octicon-fold"}} |
178 |
| - {{$.i18n.Tr "repo.issues.review.hide_resolved"}} |
179 |
| - </button> |
180 |
| - </div> |
181 |
| - {{end}} |
182 |
| - {{if eq $line.GetCommentSide "previous"}} |
183 |
| - <div id="code-comments-{{(index $line.Comments 0).ID}}" class="field comment-code-cloud {{if $resolved}}hide{{end}}"> |
184 |
| - <div class="comment-list"> |
185 |
| - <ui class="ui comments"> |
186 |
| - {{ template "repo/diff/comments" dict "root" $ "comments" $line.Comments}} |
187 |
| - </ui> |
188 |
| - </div> |
189 |
| - {{template "repo/diff/comment_form_datahandler" dict "reply" (index $line.Comments 0).ReviewID "hidden" true "root" $ "comment" (index $line.Comments 0)}} |
190 |
| - {{if and $.CanMarkConversation $isNotPending}} |
191 |
| - <button class="ui icon tiny button resolve-conversation" data-action="{{if not $resolved}}Resolve{{else}}UnResolve{{end}}" data-comment-id="{{(index $line.Comments 0).ID}}" data-update-url="{{$.RepoLink}}/issues/resolve_conversation" > |
192 |
| - {{if $resolved}} |
193 |
| - {{$.i18n.Tr "repo.issues.review.un_resolve_conversation"}} |
194 |
| - {{else}} |
195 |
| - {{$.i18n.Tr "repo.issues.review.resolve_conversation"}} |
196 |
| - {{end}} |
| 169 | + <div class="conversation-holder"> |
| 170 | + {{if and $resolved (eq $line.GetCommentSide "previous")}} |
| 171 | + <div class="ui top attached header"> |
| 172 | + <span class="ui grey text left"><b>{{$resolveDoer.Name}}</b> {{$.i18n.Tr "repo.issues.review.resolved_by"}}</span> |
| 173 | + <button id="show-outdated-{{(index $line.Comments 0).ID}}" data-comment="{{(index $line.Comments 0).ID}}" class="ui compact right labeled button show-outdated"> |
| 174 | + {{svg "octicon-unfold"}} |
| 175 | + {{$.i18n.Tr "repo.issues.review.show_resolved"}} |
197 | 176 | </button>
|
198 |
| - {{end}} |
199 |
| - </div> |
200 |
| - {{end}} |
| 177 | + <button id="hide-outdated-{{(index $line.Comments 0).ID}}" data-comment="{{(index $line.Comments 0).ID}}" class="hide ui compact right labeled button hide-outdated"> |
| 178 | + {{svg "octicon-fold"}} |
| 179 | + {{$.i18n.Tr "repo.issues.review.hide_resolved"}} |
| 180 | + </button> |
| 181 | + </div> |
| 182 | + {{end}} |
| 183 | + {{if eq $line.GetCommentSide "previous"}} |
| 184 | + <div id="code-comments-{{(index $line.Comments 0).ID}}" class="field comment-code-cloud {{if $resolved}}hide{{end}}"> |
| 185 | + <div class="comment-list"> |
| 186 | + <ui class="ui comments"> |
| 187 | + {{ template "repo/diff/comments" dict "root" $ "comments" $line.Comments}} |
| 188 | + </ui> |
| 189 | + </div> |
| 190 | + {{template "repo/diff/comment_form_datahandler" dict "reply" (index $line.Comments 0).ReviewID "hidden" true "root" $ "comment" (index $line.Comments 0)}} |
| 191 | + {{if and $.CanMarkConversation $isNotPending}} |
| 192 | + <button class="ui icon tiny button resolve-conversation" data-action="{{if not $resolved}}Resolve{{else}}UnResolve{{end}}" data-comment-id="{{(index $line.Comments 0).ID}}" data-update-url="{{$.RepoLink}}/issues/resolve_conversation" > |
| 193 | + {{if $resolved}} |
| 194 | + {{$.i18n.Tr "repo.issues.review.un_resolve_conversation"}} |
| 195 | + {{else}} |
| 196 | + {{$.i18n.Tr "repo.issues.review.resolve_conversation"}} |
| 197 | + {{end}} |
| 198 | + </button> |
| 199 | + {{end}} |
| 200 | + </div> |
| 201 | + {{end}} |
| 202 | + </div> |
201 | 203 | </td>
|
202 | 204 | <td class="lines-num"></td>
|
203 | 205 | <td class="lines-type-marker"></td>
|
204 | 206 | <td class="add-comment-right">
|
205 |
| - {{if and $resolved (eq $line.GetCommentSide "proposed")}} |
206 |
| - <div class="ui top attached header"> |
207 |
| - <span class="ui grey text left"><b>{{$resolveDoer.Name}}</b> {{$.i18n.Tr "repo.issues.review.resolved_by"}}</span> |
208 |
| - <button id="show-outdated-{{(index $line.Comments 0).ID}}" data-comment="{{(index $line.Comments 0).ID}}" class="ui compact right labeled button show-outdated"> |
209 |
| - {{svg "octicon-unfold"}} |
210 |
| - {{$.i18n.Tr "repo.issues.review.show_resolved"}} |
211 |
| - </button> |
212 |
| - <button id="hide-outdated-{{(index $line.Comments 0).ID}}" data-comment="{{(index $line.Comments 0).ID}}" class="hide ui compact right labeled button hide-outdated"> |
213 |
| - {{svg "octicon-fold"}} |
214 |
| - {{$.i18n.Tr "repo.issues.review.hide_resolved"}} |
215 |
| - </button> |
216 |
| - </div> |
217 |
| - {{end}} |
218 |
| - {{if eq $line.GetCommentSide "proposed"}} |
219 |
| - <div id="code-comments-{{(index $line.Comments 0).ID}}" class="field comment-code-cloud {{if $resolved}}hide{{end}}"> |
220 |
| - <div class="comment-list"> |
221 |
| - <ui class="ui comments"> |
222 |
| - {{ template "repo/diff/comments" dict "root" $ "comments" $line.Comments}} |
223 |
| - </ui> |
224 |
| - </div> |
225 |
| - {{template "repo/diff/comment_form_datahandler" dict "reply" (index $line.Comments 0).ReviewID "hidden" true "root" $ "comment" (index $line.Comments 0)}} |
226 |
| - {{if and $.CanMarkConversation $isNotPending}} |
227 |
| - <button class="ui icon tiny button resolve-conversation" data-action="{{if not $resolved}}Resolve{{else}}UnResolve{{end}}" data-comment-id="{{(index $line.Comments 0).ID}}" data-update-url="{{$.RepoLink}}/issues/resolve_conversation" > |
228 |
| - {{if $resolved}} |
229 |
| - {{$.i18n.Tr "repo.issues.review.un_resolve_conversation"}} |
230 |
| - {{else}} |
231 |
| - {{$.i18n.Tr "repo.issues.review.resolve_conversation"}} |
232 |
| - {{end}} |
| 207 | + <div class="conversation-holder"> |
| 208 | + {{if and $resolved (eq $line.GetCommentSide "proposed")}} |
| 209 | + <div class="ui top attached header"> |
| 210 | + <span class="ui grey text left"><b>{{$resolveDoer.Name}}</b> {{$.i18n.Tr "repo.issues.review.resolved_by"}}</span> |
| 211 | + <button id="show-outdated-{{(index $line.Comments 0).ID}}" data-comment="{{(index $line.Comments 0).ID}}" class="ui compact right labeled button show-outdated"> |
| 212 | + {{svg "octicon-unfold"}} |
| 213 | + {{$.i18n.Tr "repo.issues.review.show_resolved"}} |
233 | 214 | </button>
|
234 |
| - {{end}} |
235 |
| - </div> |
236 |
| - {{end}} |
| 215 | + <button id="hide-outdated-{{(index $line.Comments 0).ID}}" data-comment="{{(index $line.Comments 0).ID}}" class="hide ui compact right labeled button hide-outdated"> |
| 216 | + {{svg "octicon-fold"}} |
| 217 | + {{$.i18n.Tr "repo.issues.review.hide_resolved"}} |
| 218 | + </button> |
| 219 | + </div> |
| 220 | + {{end}} |
| 221 | + {{if eq $line.GetCommentSide "proposed"}} |
| 222 | + <div id="code-comments-{{(index $line.Comments 0).ID}}" class="field comment-code-cloud {{if $resolved}}hide{{end}}"> |
| 223 | + <div class="comment-list"> |
| 224 | + <ui class="ui comments"> |
| 225 | + {{ template "repo/diff/comments" dict "root" $ "comments" $line.Comments}} |
| 226 | + </ui> |
| 227 | + </div> |
| 228 | + {{template "repo/diff/comment_form_datahandler" dict "reply" (index $line.Comments 0).ReviewID "hidden" true "root" $ "comment" (index $line.Comments 0)}} |
| 229 | + {{if and $.CanMarkConversation $isNotPending}} |
| 230 | + <button class="ui icon tiny button resolve-conversation" data-action="{{if not $resolved}}Resolve{{else}}UnResolve{{end}}" data-comment-id="{{(index $line.Comments 0).ID}}" data-update-url="{{$.RepoLink}}/issues/resolve_conversation" > |
| 231 | + {{if $resolved}} |
| 232 | + {{$.i18n.Tr "repo.issues.review.un_resolve_conversation"}} |
| 233 | + {{else}} |
| 234 | + {{$.i18n.Tr "repo.issues.review.resolve_conversation"}} |
| 235 | + {{end}} |
| 236 | + </button> |
| 237 | + {{end}} |
| 238 | + </div> |
| 239 | + {{end}} |
| 240 | + </div> |
237 | 241 | </td>
|
238 | 242 | </tr>
|
239 | 243 | {{end}}
|
|
0 commit comments