2016-06-14 16:37:02 -04:00
|
|
|
- @no_container = true
|
2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Groups"
|
2016-06-14 16:37:02 -04:00
|
|
|
= render "admin/dashboard/head"
|
2014-02-15 07:31:01 -05:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-06-14 16:37:02 -04:00
|
|
|
.top-area
|
2016-05-26 18:55:49 -04:00
|
|
|
.prepend-top-default.append-bottom-default
|
|
|
|
= form_tag admin_groups_path, method: :get, class: 'js-search-form' do |f|
|
2016-06-14 16:37:02 -04:00
|
|
|
= hidden_field_tag :sort, @sort
|
2016-05-26 18:55:49 -04:00
|
|
|
.search-holder
|
|
|
|
- project_name = params[:name].present? ? params[:name] : nil
|
|
|
|
.search-field-holder
|
|
|
|
= search_field_tag :name, project_name, class: "form-control search-text-input js-search-input", autofocus: true, spellcheck: false, placeholder: 'Search by name'
|
|
|
|
= icon("search", class: "search-icon")
|
|
|
|
.dropdown
|
|
|
|
- toggle_text = @sort.present? ? sort_options_hash[@sort] : sort_title_recently_created
|
|
|
|
= dropdown_toggle(toggle_text, { toggle: 'dropdown' })
|
|
|
|
%ul.dropdown-menu.dropdown-menu-align-right
|
|
|
|
%li.dropdown-header
|
|
|
|
Sort by
|
|
|
|
%li
|
|
|
|
= link_to admin_groups_path(sort: sort_value_recently_created, name: project_name) do
|
|
|
|
= sort_title_recently_created
|
|
|
|
= link_to admin_groups_path(sort: sort_value_oldest_created, name: project_name) do
|
|
|
|
= sort_title_oldest_created
|
|
|
|
= link_to admin_groups_path(sort: sort_value_recently_updated, name: project_name) do
|
|
|
|
= sort_title_recently_updated
|
|
|
|
= link_to admin_groups_path(sort: sort_value_oldest_updated, name: project_name) do
|
|
|
|
= sort_title_oldest_updated
|
|
|
|
= link_to new_admin_group_path, class: "btn btn-new" do
|
|
|
|
New Group
|
2016-06-14 16:37:02 -04:00
|
|
|
%ul.content-list
|
2016-06-30 09:01:26 -04:00
|
|
|
= render @groups
|
2013-05-06 14:48:28 -04:00
|
|
|
|
2016-06-14 16:37:02 -04:00
|
|
|
= paginate @groups, theme: "gitlab"
|