2013-01-13 10:24:29 -05:00
|
|
|
.row
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-4
|
2013-01-13 10:24:29 -05:00
|
|
|
.admin-filter
|
|
|
|
= form_tag admin_projects_path, method: :get, class: 'form-inline' do
|
|
|
|
.control-group
|
|
|
|
= label_tag :name, 'Name:', class: 'control-label'
|
|
|
|
.controls
|
|
|
|
= text_field_tag :name, params[:name], class: "span2"
|
|
|
|
|
|
|
|
.control-group
|
2013-06-11 07:17:37 -04:00
|
|
|
= label_tag :owner_id, 'Owner:', class: 'control-label'
|
2013-01-13 10:24:29 -05:00
|
|
|
.controls
|
2013-11-06 10:13:21 -05:00
|
|
|
= users_select_tag :owner_id, selected: params[:owner_id], class: 'input-large input-clamp'
|
|
|
|
.control-group.visibility-levels
|
|
|
|
= label_tag :visibility_level, 'Visibility Levels', class: 'control-label'
|
|
|
|
- Project.visibility_levels.each do |label, level|
|
|
|
|
.controls
|
|
|
|
= check_box_tag 'visibility_levels[]', level, params[:visibility_levels].present? && params[:visibility_levels].include?(level.to_s)
|
|
|
|
%span.descr
|
|
|
|
= visibility_level_icon(level)
|
|
|
|
= label
|
2013-01-14 02:37:29 -05:00
|
|
|
.control-group
|
|
|
|
= label_tag :with_push, 'Not empty', class: 'control-label'
|
|
|
|
.controls
|
|
|
|
= check_box_tag :with_push, 1, params[:with_push]
|
|
|
|
|
|
|
|
%span.light Projects with push events
|
|
|
|
.control-group
|
|
|
|
= label_tag :abandoned, 'Abandoned', class: 'control-label'
|
|
|
|
.controls
|
|
|
|
= check_box_tag :abandoned, 1, params[:abandoned]
|
|
|
|
|
|
|
|
%span.light No activity over 6 month
|
|
|
|
|
|
|
|
|
2013-01-13 10:24:29 -05:00
|
|
|
|
|
|
|
.form-actions
|
2013-01-29 15:18:19 -05:00
|
|
|
= submit_tag "Search", class: "btn submit btn-primary"
|
2013-01-13 10:24:29 -05:00
|
|
|
= link_to "Reset", admin_projects_path, class: "btn"
|
2013-12-30 16:55:15 -05:00
|
|
|
.col-md-8
|
2013-01-13 10:24:29 -05:00
|
|
|
.ui-box
|
2013-07-13 13:36:21 -04:00
|
|
|
.title
|
2013-01-13 10:24:29 -05:00
|
|
|
Projects (#{@projects.total_count})
|
2013-07-15 08:11:34 -04:00
|
|
|
.pull-right
|
2013-08-01 15:35:40 -04:00
|
|
|
= link_to 'New Project', new_project_path, class: "btn btn-new"
|
2013-01-13 10:24:29 -05:00
|
|
|
%ul.well-list
|
|
|
|
- @projects.each do |project|
|
|
|
|
%li
|
2013-12-06 15:14:55 -05:00
|
|
|
%span{ class: visibility_level_color(project.visibility_level) }
|
|
|
|
= visibility_level_icon(project.visibility_level)
|
2013-01-13 10:24:29 -05:00
|
|
|
= link_to project.name_with_namespace, [:admin, 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)
|
2013-03-25 05:07:11 -04:00
|
|
|
= link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
|
2013-12-10 14:33:21 -05:00
|
|
|
= link_to 'Destroy', [project], data: { confirm: remove_project_message(project) }, method: :delete, class: "btn btn-small btn-remove"
|
2013-01-13 10:24:29 -05:00
|
|
|
- if @projects.blank?
|
|
|
|
%p.nothing_here_message 0 projects matches
|
2013-04-06 15:32:23 -04:00
|
|
|
= paginate @projects, theme: "gitlab"
|