summaryrefslogtreecommitdiff
path: root/app/views/groups/issues.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-07 17:12:04 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-07 17:12:04 +0100
commitcbcb8dbe702c0b1532327aeb2dc53caffb6e8ed9 (patch)
treefd5b44f26fb3458f5f0eaf0c875b231fbe5cf44b /app/views/groups/issues.html.haml
parent8f817c7b08bcad23e1b047f84cc60d1748104e2a (diff)
downloadgitlab-ce-cbcb8dbe702c0b1532327aeb2dc53caffb6e8ed9.tar.gz
Use select2 dropdown for dashboard/group 'New X' buttons
Diffstat (limited to 'app/views/groups/issues.html.haml')
-rw-r--r--app/views/groups/issues.html.haml13
1 files changed, 1 insertions, 12 deletions
diff --git a/app/views/groups/issues.html.haml b/app/views/groups/issues.html.haml
index 5a9739a0cda..90ade1e1680 100644
--- a/app/views/groups/issues.html.haml
+++ b/app/views/groups/issues.html.haml
@@ -12,18 +12,7 @@
= link_to issues_group_url(@group, format: :atom, private_token: current_user.private_token), class: 'btn' do
%i.fa.fa-rss
- - if @projects.any? { |project| can?(current_user, :create_issue, project) }
- .dropdown.inline.prepend-left-10
- %button.dropdown-toggle.btn.btn-new{type: 'button', 'data-toggle' => 'dropdown'}
- %i.fa.fa-plus
- New Issue
- %b.caret
- %ul.dropdown-menu.dropdown-menu-align-right
- - @projects.each do |project|
- - if can?(current_user, :create_issue, project)
- %li
- = link_to new_namespace_project_issue_path(project.namespace, project) do
- = project.name_with_namespace
+ = render 'shared/new_project_item_select', path: 'issues/new', label: "New Issue"
= render 'shared/issuable/filter', type: :issues