index.html.haml 1.38 KB
Newer Older
Douwe Maan's avatar
Douwe Maan committed
1
- page_title "Groups"
2
%h3.page-title
3
  Groups (#{number_with_delimiter(@groups.total_count)})
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
4
5
6
7
8

%p.light
  Group allows you to keep projects organized.
  Use groups for uniting related projects.

9
10
11
12
13
14
.top-area
  .nav-search
    = form_tag admin_groups_path, method: :get, class: 'form-inline' do
      = hidden_field_tag :sort, @sort
      = text_field_tag :name, params[:name], class: "form-control"
      = button_tag "Search", class: "btn submit btn-primary"
15

16
  .nav-controls
17
18
    .dropdown.inline
      %a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
19
        %span.light
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
        - if @sort.present?
          = sort_options_hash[@sort]
        - else
          = sort_title_recently_created
        %b.caret
      %ul.dropdown-menu
        %li
          = link_to admin_groups_path(sort: sort_value_recently_created) do
            = sort_title_recently_created
          = link_to admin_groups_path(sort: sort_value_oldest_created) do
            = sort_title_oldest_created
          = link_to admin_groups_path(sort: sort_value_recently_updated) do
            = sort_title_recently_updated
          = link_to admin_groups_path(sort: sort_value_oldest_updated) do
            = sort_title_oldest_updated
35
    = link_to 'New Group', new_admin_group_path, class: "btn btn-new"
36

37
%ul.content-list
38
  - @groups.each do |group|
39
    = render 'group', group: group
40

41
= paginate @groups, theme: "gitlab"