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

= 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
      - 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 }
  - else
    .nothing-here-block
      There are no subgroups to show.