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