diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-03-04 16:42:58 +0100 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-03-04 19:26:10 +0100 |
commit | 2c431f89b1d172bdff326c93d58732a0d0a3f3bc (patch) | |
tree | 2356da475e8ebbb119bd42e4de0fabc32edd74b2 /app/views/groups/_projects.html.haml | |
parent | bebf34aa47235899b54c54995a8b6a13534f2eab (diff) | |
download | gitlab-ce-2c431f89b1d172bdff326c93d58732a0d0a3f3bc.tar.gz |
Add projects list sort dropdown to group page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/groups/_projects.html.haml')
-rw-r--r-- | app/views/groups/_projects.html.haml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/groups/_projects.html.haml b/app/views/groups/_projects.html.haml index 794aa57b55a..7cd8e9bea46 100644 --- a/app/views/groups/_projects.html.haml +++ b/app/views/groups/_projects.html.haml @@ -3,9 +3,10 @@ = form_tag request.original_url, method: :get, class: 'project-filter-form', id: 'project-filter-form' do |f| - if @projects.present? = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control', spellcheck: false - - if can? current_user, :create_projects, @group - = link_to new_project_path(namespace_id: @group.id), class: 'btn btn-new pull-right' do - = icon('plus') - New Project + = render 'shared/projects/dropdown' + - if can? current_user, :create_projects, @group + = link_to new_project_path(namespace_id: @group.id), class: 'btn btn-new pull-right' do + = icon('plus') + New Project = render 'shared/projects/list', projects: @projects, stars: false, skip_namespace: true |