gitlab-org--gitlab-foss/app/views/explore/groups/index.html.haml

46 lines
1.5 KiB
Text
Raw Normal View History

- page_title "Groups"
- header_title "Groups", dashboard_groups_path
- if current_user
= render 'dashboard/groups_head'
- else
= render 'explore/head'
2016-04-25 16:02:15 -04:00
.row-content-block.clearfix
.pull-left
= 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
.form-group
= search_field_tag :search, params[:search], placeholder: "Filter by name", class: "form-control search-text-input", id: "groups_search", spellcheck: false
.form-group
= button_tag 'Search', class: "btn btn-default"
.pull-right
.dropdown.inline
2014-09-30 10:39:37 -04:00
%button.dropdown-toggle.btn{type: 'button', 'data-toggle' => 'dropdown'}
%span.light
- if @sort.present?
2015-02-05 22:15:05 -05:00
= sort_options_hash[@sort]
- else
2015-02-05 22:15:05 -05:00
= sort_title_recently_created
%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
= sort_title_recently_created
2015-02-05 22:15:05 -05:00
= link_to explore_groups_path(sort: sort_value_oldest_created) do
= sort_title_oldest_created
2015-02-05 22:15:05 -05:00
= link_to explore_groups_path(sort: sort_value_recently_updated) do
= sort_title_recently_updated
2015-02-05 22:15:05 -05:00
= link_to explore_groups_path(sort: sort_value_oldest_updated) do
= sort_title_oldest_updated
%ul.content-list
- @groups.each do |group|
= render 'shared/groups/group', group: group
- unless @groups.present?
.nothing-here-block No public groups
= paginate @groups, theme: "gitlab"