summaryrefslogtreecommitdiff
path: root/app/views/groups/subgroups.html.haml
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-07-21 15:49:37 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-09-01 10:21:09 +0200
commit1e668a3cfebfcf576a8c5da834bad094fd9039f6 (patch)
tree405caed1e99ae5f642c9f363d793b3a9a64c4dd1 /app/views/groups/subgroups.html.haml
parentbf4ec606a56238326bf4930c59d0ca82dd281cb7 (diff)
downloadgitlab-ce-1e668a3cfebfcf576a8c5da834bad094fd9039f6.tar.gz
Rework subgroup endpointbvl-show-projects-in-group-tree
Diffstat (limited to 'app/views/groups/subgroups.html.haml')
-rw-r--r--app/views/groups/subgroups.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/groups/subgroups.html.haml b/app/views/groups/subgroups.html.haml
index 8f0724c0677..f05cb2a3e73 100644
--- a/app/views/groups/subgroups.html.haml
+++ b/app/views/groups/subgroups.html.haml
@@ -7,15 +7,15 @@
.top-area
= render 'groups/show_nav'
.nav-controls
- = form_tag request.path, method: :get do |f|
- = search_field_tag :filter_groups, params[:filter_groups], placeholder: 'Filter by name', class: 'form-control', spellcheck: false
+ = render 'shared/groups/search_form'
+ = render 'shared/groups/dropdown'
- if can?(current_user, :create_subgroup, @group)
= link_to new_group_path(parent_id: @group.id), class: 'btn btn-new pull-right' do
New Subgroup
- if @nested_groups.present?
%ul.content-list
- = render partial: 'shared/groups/group', collection: @nested_groups, locals: { full_name: false }
+ = render 'shared/groups/groups_tree', groups_endpoint: subgroups_group_path(@group, format: :json), groups_path: subgroups_group_path(@group)
- else
.nothing-here-block
There are no subgroups to show.