2015-09-08 09:49:20 -04:00
|
|
|
- page_title "Groups"
|
|
|
|
- header_title "Groups", dashboard_groups_path
|
|
|
|
|
2015-08-20 05:59:14 -04:00
|
|
|
- if current_user
|
|
|
|
= render 'dashboard/groups_head'
|
2015-09-08 09:49:20 -04:00
|
|
|
- else
|
|
|
|
= render 'explore/head'
|
|
|
|
|
2016-04-25 16:02:15 -04:00
|
|
|
.row-content-block.clearfix
|
2014-07-11 12:29:51 -04:00
|
|
|
.pull-left
|
2014-07-23 05:03:49 -04:00
|
|
|
= form_tag explore_groups_path, method: :get, class: 'form-inline form-tiny' do |f|
|
2015-02-05 22:15:05 -05:00
|
|
|
= hidden_field_tag :sort, @sort
|
2014-07-11 12:29:51 -04:00
|
|
|
.form-group
|
2015-10-09 12:08:37 -04:00
|
|
|
= search_field_tag :search, params[:search], placeholder: "Filter by name", class: "form-control search-text-input", id: "groups_search", spellcheck: false
|
2014-07-11 12:29:51 -04:00
|
|
|
.form-group
|
2015-09-03 12:19:31 -04:00
|
|
|
= button_tag 'Search', class: "btn btn-default"
|
2014-07-11 12:29:51 -04:00
|
|
|
|
|
|
|
.pull-right
|
|
|
|
.dropdown.inline
|
2014-09-30 10:39:37 -04:00
|
|
|
%button.dropdown-toggle.btn{type: 'button', 'data-toggle' => 'dropdown'}
|
2016-01-28 04:05:00 -05:00
|
|
|
%span.light
|
2014-07-11 12:29:51 -04:00
|
|
|
- if @sort.present?
|
2015-02-05 22:15:05 -05:00
|
|
|
= sort_options_hash[@sort]
|
2014-07-11 12:29:51 -04:00
|
|
|
- else
|
2015-02-05 22:15:05 -05:00
|
|
|
= sort_title_recently_created
|
2014-07-11 12:29:51 -04:00
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
2015-02-05 22:15:05 -05:00
|
|
|
= link_to explore_groups_path(sort: sort_value_recently_created) do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_recently_created
|
2015-02-05 22:15:05 -05:00
|
|
|
= link_to explore_groups_path(sort: sort_value_oldest_created) do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_oldest_created
|
2015-02-05 22:15:05 -05:00
|
|
|
= link_to explore_groups_path(sort: sort_value_recently_updated) do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_recently_updated
|
2015-02-05 22:15:05 -05:00
|
|
|
= link_to explore_groups_path(sort: sort_value_oldest_updated) do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_oldest_updated
|
2014-07-11 12:29:51 -04:00
|
|
|
|
2015-09-03 12:19:31 -04:00
|
|
|
%ul.content-list
|
2014-07-11 12:29:51 -04:00
|
|
|
- @groups.each do |group|
|
2015-08-26 17:41:56 -04:00
|
|
|
= render 'shared/groups/group', group: group
|
2014-07-11 12:29:51 -04:00
|
|
|
- unless @groups.present?
|
|
|
|
.nothing-here-block No public groups
|
|
|
|
|
|
|
|
|
|
|
|
= paginate @groups, theme: "gitlab"
|