diff --git a/services/web/app/views/project/editor/review-panel.pug b/services/web/app/views/project/editor/review-panel.pug index c87a5016af..ded551dbda 100644 --- a/services/web/app/views/project/editor/review-panel.pug +++ b/services/web/app/views/project/editor/review-panel.pug @@ -83,7 +83,10 @@ on-cancel="cancelNewComment();" ) div(ng-if="entry.type === 'bulk-actions'") - | Bulk actions. + bulk-actions-entry( + on-bulk-accept="bulkAccept();" + on-bulk-reject="bulkAccept();" + ) .rp-entry-list( ng-if="reviewPanel.subView === SubViews.OVERVIEW" @@ -355,6 +358,23 @@ script(type='text/ng-template', id='addCommentEntryTemplate') i.fa.fa-comment |  #{translate("comment")} +script(type='text/ng-template', id='bulkActionsEntryTemplate') + div + .rp-entry-callout.rp-entry-callout-bulk-actions + .rp-entry.rp-entry-bulk-actions + a.rp-bulk-actions-btn( + href + ng-click="bulkReject();" + ) + i.fa.fa-times + |  #{translate("reject_all")} + a.rp-bulk-actions-btn( + href + ng-click="bulkAccept();" + ) + i.fa.fa-check + |  #{translate("accept_all")} + script(type='text/ng-template', id='resolvedCommentsDropdownTemplate') .resolved-comments .resolved-comments-backdrop( diff --git a/services/web/public/coffee/ide/review-panel/ReviewPanelManager.coffee b/services/web/public/coffee/ide/review-panel/ReviewPanelManager.coffee index 9b622ffa05..289f291b1f 100644 --- a/services/web/public/coffee/ide/review-panel/ReviewPanelManager.coffee +++ b/services/web/public/coffee/ide/review-panel/ReviewPanelManager.coffee @@ -6,6 +6,7 @@ define [ "ide/review-panel/directives/changeEntry" "ide/review-panel/directives/commentEntry" "ide/review-panel/directives/addCommentEntry" + "ide/review-panel/directives/bulkActionsEntry" "ide/review-panel/directives/resolvedCommentEntry" "ide/review-panel/directives/resolvedCommentsDropdown" "ide/review-panel/directives/reviewPanelCollapseHeight" diff --git a/services/web/public/coffee/ide/review-panel/directives/bulkActionsEntry.coffee b/services/web/public/coffee/ide/review-panel/directives/bulkActionsEntry.coffee new file mode 100644 index 0000000000..3adf27ffed --- /dev/null +++ b/services/web/public/coffee/ide/review-panel/directives/bulkActionsEntry.coffee @@ -0,0 +1,14 @@ +define [ + "base" +], (App) -> + App.directive "bulkActionsEntry", () -> + restrict: "E" + templateUrl: "bulkActionsEntryTemplate" + scope: + onBulkAccept: "&" + onBulkReject: "&" + link: (scope, element, attrs) -> + scope.bulkAccept = () -> + scope.onBulkAccept() + scope.bulkReject = () -> + scope.onBulkReject() \ No newline at end of file