2017-01-24 10:32:34 -05:00
|
|
|
- @no_container = true
|
|
|
|
|
2017-02-28 12:16:01 -05:00
|
|
|
= render 'head'
|
2017-01-24 10:32:34 -05:00
|
|
|
= render 'groups/home_panel'
|
|
|
|
|
|
|
|
.groups-header{ class: container_class }
|
|
|
|
.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
|
2017-04-11 12:36:56 -04:00
|
|
|
- if can?(current_user, :create_subgroup, @group)
|
2017-01-24 10:32:34 -05:00
|
|
|
= 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 }
|
|
|
|
- else
|
|
|
|
.nothing-here-block
|
|
|
|
There are no subgroups to show.
|