index.html.haml 1.31 KB
Newer Older
1
%h3.page-title
2
  Groups (#{@groups.total_count})
3
4
5
6
  %small
    allows you to keep projects organized.
    Use groups for uniting related projects.

7
  = link_to 'New Group', new_admin_group_path, class: "btn btn-new pull-right"
8
9
%br
= form_tag admin_groups_path, method: :get, class: 'form-inline' do
10
  .form-group
11
    = text_field_tag :name, params[:name], class: "form-control input-mn-300"
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
12
  = submit_tag "Search", class: "btn submit btn-primary"
13

14
%hr
15

16
%ul.bordered-list
17
  - @groups.each do |group|
18
19
20
21
    %li
      .clearfix
        .pull-right.prepend-top-10
          = link_to 'Edit', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small"
22
          = link_to 'Destroy', [:admin, group], data: {confirm: "REMOVE #{group.name}? Are you sure?"}, method: :delete, class: "btn btn-small btn-remove"
23
24
25
26
27
28
29
30
31
32
33
34

        %h4
          = link_to [:admin, group] do
            = group.name

          →
          %span.monospace
            %i.icon-folder-close
            %strong #{group.path}/

      .clearfix.light.append-bottom-10
        %span
35
36
          %b Members:
          %span.badge= group.members.size
37
38
39
40
41
42
43
44
45
        \|
        %span
          %b Projects:
          %span.badge= group.projects.count

      .clearfix
        %p
          = truncate group.description, length: 150

46
= paginate @groups, theme: "gitlab"