diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-07 17:12:04 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-07 17:12:04 +0100 |
commit | cbcb8dbe702c0b1532327aeb2dc53caffb6e8ed9 (patch) | |
tree | fd5b44f26fb3458f5f0eaf0c875b231fbe5cf44b /app/views/dashboard/milestones | |
parent | 8f817c7b08bcad23e1b047f84cc60d1748104e2a (diff) | |
download | gitlab-ce-cbcb8dbe702c0b1532327aeb2dc53caffb6e8ed9.tar.gz |
Use select2 dropdown for dashboard/group 'New X' buttons
Diffstat (limited to 'app/views/dashboard/milestones')
-rw-r--r-- | app/views/dashboard/milestones/index.html.haml | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/app/views/dashboard/milestones/index.html.haml b/app/views/dashboard/milestones/index.html.haml index 9aea75e50db..94ff259a338 100644 --- a/app/views/dashboard/milestones/index.html.haml +++ b/app/views/dashboard/milestones/index.html.haml @@ -3,18 +3,7 @@ .project-issuable-filter .controls - - if @projects.any? { |project| can?(current_user, :admin_milestone, project) } - .dropdown.inline - %button.dropdown-toggle.btn.btn-new{type: 'button', 'data-toggle' => 'dropdown'} - %i.fa.fa-plus - New Milestone - %b.caret - %ul.dropdown-menu.dropdown-menu-align-right - - @projects.each do |project| - - if can?(current_user, :admin_milestone, project) - %li - = link_to new_namespace_project_milestone_path(project.namespace, project) do - = project.name_with_namespace + = render 'shared/new_project_item_select', path: 'milestones/new', label: "New Milestone" = render 'shared/milestones_filter' |