2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Projects"
|
2015-04-26 18:43:02 -04:00
|
|
|
= render 'shared/show_aside'
|
|
|
|
|
2013-01-13 10:24:29 -05:00
|
|
|
.row
|
2015-02-25 00:31:54 -05:00
|
|
|
%aside.col-md-3
|
2013-01-13 10:24:29 -05:00
|
|
|
.admin-filter
|
2015-01-24 13:02:58 -05:00
|
|
|
= form_tag admin_namespaces_projects_path, method: :get, class: '' do
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group
|
2014-01-03 16:46:32 -05:00
|
|
|
= label_tag :name, 'Name:'
|
|
|
|
= text_field_tag :name, params[:name], class: "form-control"
|
2013-01-13 10:24:29 -05:00
|
|
|
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group
|
2014-06-03 07:19:11 -04:00
|
|
|
= label_tag :namespace_id, "Namespace"
|
|
|
|
= namespace_select_tag :namespace_id, selected: params[:namespace_id], class: 'input-large'
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
%strong Activity
|
|
|
|
.checkbox
|
2015-02-19 18:02:49 -05:00
|
|
|
= label_tag :with_push do
|
|
|
|
= check_box_tag :with_push, 1, params[:with_push]
|
|
|
|
%span Projects with push events
|
2014-06-03 07:19:11 -04:00
|
|
|
.checkbox
|
2015-02-19 18:02:49 -05:00
|
|
|
= label_tag :abandoned do
|
|
|
|
= check_box_tag :abandoned, 1, params[:abandoned]
|
|
|
|
%span No activity over 6 month
|
2013-01-13 10:24:29 -05:00
|
|
|
|
2014-01-03 16:46:32 -05:00
|
|
|
%fieldset
|
|
|
|
%strong Visibility level:
|
|
|
|
.visibility-levels
|
|
|
|
- Project.visibility_levels.each do |label, level|
|
|
|
|
.checkbox
|
|
|
|
%label
|
|
|
|
= check_box_tag 'visibility_levels[]', level, params[:visibility_levels].present? && params[:visibility_levels].include?(level.to_s)
|
|
|
|
%span.descr
|
|
|
|
= visibility_level_icon(level)
|
|
|
|
= label
|
2014-06-03 07:19:11 -04:00
|
|
|
%hr
|
|
|
|
= hidden_field_tag :sort, params[:sort]
|
2014-09-26 10:57:36 -04:00
|
|
|
= button_tag "Search", class: "btn submit btn-primary"
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to "Reset", admin_namespaces_projects_path, class: "btn btn-cancel"
|
2014-01-03 16:46:32 -05:00
|
|
|
|
2015-02-25 00:31:54 -05:00
|
|
|
%section.col-md-9
|
2014-05-29 11:42:44 -04:00
|
|
|
.panel.panel-default
|
2014-05-29 11:43:21 -04:00
|
|
|
.panel-heading
|
2013-01-13 10:24:29 -05:00
|
|
|
Projects (#{@projects.total_count})
|
2014-05-29 12:42:49 -04:00
|
|
|
.panel-head-actions
|
2014-05-02 10:02:57 -04:00
|
|
|
.dropdown.inline
|
2015-03-07 13:35:17 -05:00
|
|
|
%button.dropdown-toggle.btn.btn-sm{type: 'button', 'data-toggle' => 'dropdown'}
|
2014-05-02 10:02:57 -04:00
|
|
|
%span.light sort:
|
|
|
|
- if @sort.present?
|
2015-02-05 22:15:05 -05:00
|
|
|
= sort_options_hash[@sort]
|
2014-05-02 10:02:57 -04:00
|
|
|
- else
|
2015-02-05 22:15:05 -05:00
|
|
|
= sort_title_recently_created
|
2014-05-02 10:02:57 -04:00
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to admin_namespaces_projects_path(sort: sort_value_recently_created) do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_recently_created
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to admin_namespaces_projects_path(sort: sort_value_oldest_created) do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_oldest_created
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to admin_namespaces_projects_path(sort: sort_value_recently_updated) do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_recently_updated
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to admin_namespaces_projects_path(sort: sort_value_oldest_updated) do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_oldest_updated
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to admin_namespaces_projects_path(sort: sort_value_largest_repo) do
|
2015-02-05 22:15:05 -05:00
|
|
|
= sort_title_largest_repo
|
2015-03-07 13:35:17 -05:00
|
|
|
= link_to 'New Project', new_project_path, class: "btn btn-sm btn-success"
|
2013-01-13 10:24:29 -05:00
|
|
|
%ul.well-list
|
|
|
|
- @projects.each do |project|
|
|
|
|
%li
|
2014-03-26 03:25:02 -04:00
|
|
|
.list-item-name
|
|
|
|
%span{ class: visibility_level_color(project.visibility_level) }
|
|
|
|
= visibility_level_icon(project.visibility_level)
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to project.name_with_namespace, [:admin, project.namespace.becomes(Namespace), project]
|
2013-01-30 09:40:43 -05:00
|
|
|
.pull-right
|
2013-11-29 07:16:17 -05:00
|
|
|
%span.label.label-gray
|
|
|
|
= repository_size(project)
|
2015-03-14 03:29:32 -04:00
|
|
|
= link_to 'Edit', edit_namespace_project_path(project.namespace, project), id: "edit_#{dom_id(project)}", class: "btn btn-sm"
|
|
|
|
= link_to 'Destroy', [project.namespace.becomes(Namespace), project], data: { confirm: remove_project_message(project) }, method: :delete, class: "btn btn-sm btn-remove"
|
2013-01-13 10:24:29 -05:00
|
|
|
- if @projects.blank?
|
2014-02-20 06:51:22 -05:00
|
|
|
.nothing-here-block 0 projects matches
|
2013-04-06 15:32:23 -04:00
|
|
|
= paginate @projects, theme: "gitlab"
|