2015-04-30 17:06:18 +00:00
|
|
|
- page_title "Groups"
|
2015-08-20 09:59:14 +00:00
|
|
|
- if current_user
|
|
|
|
= render 'dashboard/groups_head'
|
2015-08-20 11:05:14 +00:00
|
|
|
.clearfix.append-bottom-10
|
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-06-08 14:34:58 +00:00
|
|
|
= search_field_tag :search, params[:search], placeholder: "Filter by name", class: "form-control search-text-input", id: "groups_search"
|
2014-07-11 16:29:51 +00:00
|
|
|
.form-group
|
2014-09-26 14:57:36 +00:00
|
|
|
= button_tag 'Search', class: "btn btn-primary wide"
|
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'}
|
2014-07-11 16:29:51 +00:00
|
|
|
%span.light sort:
|
|
|
|
- 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
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%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
|
|
|
|
|
|
|
%ul.bordered-list
|
|
|
|
- @groups.each do |group|
|
|
|
|
%li
|
|
|
|
.clearfix
|
|
|
|
%h4
|
|
|
|
= link_to group_path(id: group.path) do
|
|
|
|
= group.name
|
|
|
|
.clearfix
|
|
|
|
%p
|
|
|
|
= truncate group.description, length: 150
|
|
|
|
.clearfix
|
|
|
|
%p.light
|
|
|
|
#{pluralize(group.members.size, 'member')}, #{pluralize(group.projects.count, 'project')}
|
|
|
|
- unless @groups.present?
|
|
|
|
.nothing-here-block No public groups
|
|
|
|
|
|
|
|
|
|
|
|
= paginate @groups, theme: "gitlab"
|