summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable/_filter.html.haml
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 16:04:08 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 16:39:33 -0300
commit5f6c6d6a0d8feee9b17d309e4da180dce7ca8ce0 (patch)
treedb6da2880941bf593dbb36dc11acb0f7efd8648f /app/views/shared/issuable/_filter.html.haml
parent146e905995fad9753fe4e4afa72342532acb90b0 (diff)
downloadgitlab-ce-5f6c6d6a0d8feee9b17d309e4da180dce7ca8ce0.tar.gz
Hide `Create new list button` on Issues and MRs pages
Diffstat (limited to 'app/views/shared/issuable/_filter.html.haml')
-rw-r--r--app/views/shared/issuable/_filter.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/shared/issuable/_filter.html.haml b/app/views/shared/issuable/_filter.html.haml
index ffe8d4fbdbf..4f8ea7e7cef 100644
--- a/app/views/shared/issuable/_filter.html.haml
+++ b/app/views/shared/issuable/_filter.html.haml
@@ -27,9 +27,7 @@
= render "shared/issuable/label_dropdown"
.pull-right
- - if controller.controller_name != 'boards'
- = render 'shared/sort_dropdown'
- - if can?(current_user, :admin_list, @project)
+ - if controller.controller_name == 'boards' && can?(current_user, :admin_list, @project)
.dropdown
%button.btn.btn-create.js-new-board-list{ type: "button", data: { toggle: "dropdown", labels: labels_filter_path, project_id: @project.try(:id) } }
Create new list
@@ -38,6 +36,8 @@
- if can?(current_user, :admin_label, @project)
= render partial: "shared/issuable/label_page_create"
= dropdown_loading
+ - else
+ = render 'shared/sort_dropdown'
- if controller.controller_name == 'issues'
.issues_bulk_update.hide