2014-07-11 12:29:51 -04:00
|
|
|
.clearfix
|
|
|
|
.pull-left
|
2014-07-23 05:03:49 -04:00
|
|
|
= form_tag explore_groups_path, method: :get, class: 'form-inline form-tiny' do |f|
|
2014-07-11 12:29:51 -04:00
|
|
|
.form-group
|
|
|
|
= search_field_tag :search, params[:search], placeholder: "Filter by name", class: "form-control search-text-input input-mn-300", id: "groups_search"
|
|
|
|
.form-group
|
2014-09-26 10:57:36 -04:00
|
|
|
= button_tag 'Search', class: "btn btn-primary wide"
|
2014-07-11 12:29:51 -04:00
|
|
|
|
|
|
|
.pull-right
|
|
|
|
.dropdown.inline
|
|
|
|
%a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
|
|
|
|
%span.light sort:
|
|
|
|
- if @sort.present?
|
|
|
|
= @sort.humanize
|
|
|
|
- else
|
|
|
|
Name
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
2014-07-23 05:03:49 -04:00
|
|
|
= link_to explore_groups_path(sort: nil) do
|
2014-07-11 12:29:51 -04:00
|
|
|
Name
|
2014-07-23 05:03:49 -04:00
|
|
|
= link_to explore_groups_path(sort: 'newest') do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_recently_created
|
2014-07-23 05:03:49 -04:00
|
|
|
= link_to explore_groups_path(sort: 'oldest') do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_oldest_created
|
2014-07-23 05:03:49 -04:00
|
|
|
= link_to explore_groups_path(sort: 'recently_updated') do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_recently_updated
|
2014-07-23 05:03:49 -04:00
|
|
|
= link_to explore_groups_path(sort: 'last_updated') do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_oldest_updated
|
2014-07-11 12:29:51 -04:00
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%ul.bordered-list
|
|
|
|
- @groups.each do |group|
|
|
|
|
%li
|
|
|
|
.clearfix
|
|
|
|
%h4
|
|
|
|
= link_to group_path(id: group.path) do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-users
|
2014-07-11 12:29:51 -04:00
|
|
|
= 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"
|