|
508 | 508 | </div> |
509 | 509 | </div> |
510 | 510 | {{end}} |
511 | | - <div id="code-comments-{{(index $comms 0).ID}}" class="comment-code-cloud ui segment{{if $resolved}} hide{{end}} py-3"> |
| 511 | + <div id="code-comments-{{(index $comms 0).ID}}" class="comment-code-cloud ui segment{{if $resolved}} hide{{end}} p-3"> |
512 | 512 | <div class="ui comments mb-0"> |
513 | 513 | {{range $comms}} |
514 | 514 | {{ $createdSubStr:= TimeSinceUnix .CreatedUnix $.Lang }} |
515 | | - <div class="comment code-comment" id="{{.HashTag}}"> |
| 515 | + <div class="comment code-comment pb-4" id="{{.HashTag}}"> |
516 | 516 | <div class="content"> |
517 | 517 | <div class="header comment-header"> |
518 | 518 | <div class="comment-header-left df ac"> |
|
572 | 572 | </div> |
573 | 573 | {{end}} |
574 | 574 | </div> |
575 | | - {{template "repo/diff/comment_form_datahandler" dict "hidden" true "reply" (index $comms 0).ReviewID "root" $ "comment" (index $comms 0)}} |
576 | | - |
577 | | - {{if and $.CanMarkConversation $isNotPending}} |
578 | | - <button class="ui tiny button resolve-conversation" data-origin="timeline" data-action="{{if not $resolved}}Resolve{{else}}UnResolve{{end}}" data-comment-id="{{(index $comms 0).ID}}" data-update-url="{{$.RepoLink}}/issues/resolve_conversation" > |
| 575 | + <div class="df ac fw mt-3 mb-2 mx-3"> |
| 576 | + <div class="f1"> |
579 | 577 | {{if $resolved}} |
580 | | - {{$.i18n.Tr "repo.issues.review.un_resolve_conversation"}} |
581 | | - {{else}} |
582 | | - {{$.i18n.Tr "repo.issues.review.resolve_conversation"}} |
| 578 | + <div class="ui grey text"> |
| 579 | + {{svg "octicon-check" 16 "mr-2"}} |
| 580 | + <b>{{$resolveDoer.Name}}</b> {{$.i18n.Tr "repo.issues.review.resolved_by"}} |
| 581 | + </div> |
583 | 582 | {{end}} |
584 | | - </button> |
585 | | - {{end}} |
586 | | - |
587 | | - {{if $resolved}} |
588 | | - <span class="ui grey text"><b>{{$resolveDoer.Name}}</b> {{$.i18n.Tr "repo.issues.review.resolved_by"}}</span> |
589 | | - {{end}} |
| 583 | + </div> |
| 584 | + <div> |
| 585 | + {{if and $.CanMarkConversation $isNotPending}} |
| 586 | + <button class="ui tiny basic button resolve-conversation" data-origin="timeline" data-action="{{if not $resolved}}Resolve{{else}}UnResolve{{end}}" data-comment-id="{{(index $comms 0).ID}}" data-update-url="{{$.RepoLink}}/issues/resolve_conversation"> |
| 587 | + {{if $resolved}} |
| 588 | + {{$.i18n.Tr "repo.issues.review.un_resolve_conversation"}} |
| 589 | + {{else}} |
| 590 | + {{$.i18n.Tr "repo.issues.review.resolve_conversation"}} |
| 591 | + {{end}} |
| 592 | + </button> |
| 593 | + {{end}} |
| 594 | + {{if and $.SignedUserID (not $.Repository.IsArchived)}} |
| 595 | + <button class="comment-form-reply ui green tiny labeled icon button ml-2 mr-0"> |
| 596 | + {{svg "octicon-reply" 16 "reply icon mr-2"}}{{$.i18n.Tr "repo.diff.comment.reply"}} |
| 597 | + </button> |
| 598 | + {{end}} |
| 599 | + </div> |
| 600 | + </div> |
| 601 | + {{template "repo/diff/comment_form_datahandler" dict "hidden" true "reply" (index $comms 0).ReviewID "root" $ "comment" (index $comms 0)}} |
590 | 602 | </div> |
591 | 603 | </div> |
592 | 604 | {{end}} |
|
0 commit comments