summaryrefslogtreecommitdiff
path: root/app/views/groups/subgroups.html.haml
blob: f05cb2a3e735f5efb65bd14f6d376d10bef33af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- @no_container = true

= render 'head'
= render 'groups/home_panel'

.groups-header{ class: container_class }
  .top-area
    = render 'groups/show_nav'
    .nav-controls
      = 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 '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.