BigW Consortium Gitlab

index.html.haml 1.52 KB
Newer Older
1 2 3
- page_title    "Groups"
- header_title  "Groups", dashboard_groups_path

4 5
- if current_user
  = render 'dashboard/groups_head'
6 7 8
- else
  = render 'explore/head'

9
.gray-content-block.clearfix
10
  .pull-left
11
    = form_tag explore_groups_path, method: :get, class: 'form-inline form-tiny' do |f|
12
      = hidden_field_tag :sort, @sort
13
      .form-group
14
        = search_field_tag :search, params[:search], placeholder: "Filter by name", class: "form-control search-text-input", id: "groups_search"
15
      .form-group
16
        = button_tag 'Search', class: "btn btn-default"
17 18 19

  .pull-right
    .dropdown.inline
20
      %button.dropdown-toggle.btn{type: 'button', 'data-toggle' => 'dropdown'}
21 22
        %span.light sort:
        - if @sort.present?
23
          = sort_options_hash[@sort]
24
        - else
25
          = sort_title_recently_created
26 27 28
        %b.caret
      %ul.dropdown-menu
        %li
29
          = link_to explore_groups_path(sort: sort_value_recently_created) do
30
            = sort_title_recently_created
31
          = link_to explore_groups_path(sort: sort_value_oldest_created) do
32
            = sort_title_oldest_created
33
          = link_to explore_groups_path(sort: sort_value_recently_updated) do
34
            = sort_title_recently_updated
35
          = link_to explore_groups_path(sort: sort_value_oldest_updated) do
36
            = sort_title_oldest_updated
37

38
%ul.content-list
39
  - @groups.each do |group|
40
    = render 'shared/groups/group', group: group
41 42 43 44 45
  - unless @groups.present?
    .nothing-here-block No public groups


= paginate @groups, theme: "gitlab"