2012-08-25 19:31:19 +02:00
|
|
|
%h3.page_title
|
2013-01-13 16:24:29 +01:00
|
|
|
Projects
|
2012-11-23 05:31:09 +01:00
|
|
|
= link_to 'New Project', new_project_path, class: "btn small right"
|
2012-06-21 17:54:57 +02:00
|
|
|
|
2013-01-13 16:24:29 +01:00
|
|
|
%hr
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2013-01-13 16:24:29 +01:00
|
|
|
.row
|
|
|
|
.span4
|
|
|
|
.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
|
|
|
|
= label_tag :namespace_id, 'Namespace:', class: 'control-label'
|
|
|
|
.controls
|
|
|
|
= select_tag :namespace_id, namespaces_options(params[:namespace_id], :all), class: "chosen span2", prompt: "Any"
|
|
|
|
.control-group
|
|
|
|
= label_tag :public_only, 'Public Only', class: 'control-label'
|
|
|
|
.controls
|
|
|
|
= check_box_tag :public_only, 1, params[:public_only]
|
2013-01-14 08:37:29 +01: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 16:24:29 +01:00
|
|
|
|
|
|
|
.form-actions
|
|
|
|
= submit_tag "Search", class: "btn submit primary"
|
|
|
|
= link_to "Reset", admin_projects_path, class: "btn"
|
|
|
|
.span8
|
|
|
|
.ui-box
|
|
|
|
%h5.title
|
|
|
|
Projects (#{@projects.total_count})
|
|
|
|
%ul.well-list
|
|
|
|
- @projects.each do |project|
|
|
|
|
%li
|
|
|
|
- if project.public
|
2013-01-16 15:54:01 +01:00
|
|
|
%i.icon-share
|
2013-01-13 16:24:29 +01:00
|
|
|
- else
|
|
|
|
%i.icon-lock.cgreen
|
|
|
|
= link_to project.name_with_namespace, [:admin, project]
|
|
|
|
.right
|
|
|
|
= link_to 'Edit', edit_admin_project_path(project), id: "edit_#{dom_id(project)}", class: "btn small"
|
|
|
|
= link_to 'Destroy', [:admin, project], confirm: "REMOVE #{project.name}? Are you sure?", method: :delete, class: "btn small danger"
|
|
|
|
- if @projects.blank?
|
|
|
|
%p.nothing_here_message 0 projects matches
|
2013-01-02 18:32:34 +01:00
|
|
|
- else
|
2013-01-13 16:24:29 +01:00
|
|
|
%li.bottom
|
2013-01-14 08:37:29 +01:00
|
|
|
= paginate @projects, theme: "gitlab"
|