2012-08-25 19:31:19 +02:00
|
|
|
%h3.page_title
|
2012-12-14 06:14:05 +01:00
|
|
|
Projects (#{@projects.count})
|
2012-11-23 05:31:09 +01:00
|
|
|
= link_to 'New Project', new_project_path, class: "btn small right"
|
2012-04-13 07:12:34 +02:00
|
|
|
%br
|
2012-08-23 23:04:43 +02:00
|
|
|
= form_tag admin_projects_path, method: :get, class: 'form-inline' do
|
2012-11-25 17:52:12 +01:00
|
|
|
= select_tag :namespace_id, namespaces_options(params[:namespace_id], :all), class: "chosen xlarge", prompt: "Project namespace"
|
2012-08-11 00:07:50 +02:00
|
|
|
= text_field_tag :name, params[:name], class: "xlarge"
|
|
|
|
= submit_tag "Search", class: "btn submit primary"
|
2012-06-21 17:54:57 +02:00
|
|
|
|
2012-09-03 20:53:16 +02:00
|
|
|
%table
|
2011-11-02 16:21:17 +01:00
|
|
|
%thead
|
2012-12-11 02:39:05 +01:00
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
Name
|
|
|
|
%i.icon-sort-down
|
|
|
|
%th Path
|
|
|
|
%th Team Members
|
|
|
|
%th Last Commit
|
|
|
|
%th Edit
|
|
|
|
%th.cred Danger Zone!
|
2011-10-08 23:36:38 +02:00
|
|
|
|
2012-11-23 05:31:09 +01:00
|
|
|
- @projects.each do |project|
|
2011-10-08 23:36:38 +02:00
|
|
|
%tr
|
2012-11-23 05:24:09 +01:00
|
|
|
%td
|
2012-11-25 17:52:12 +01:00
|
|
|
= link_to project.name_with_namespace, [:admin, project]
|
2012-11-23 05:24:09 +01:00
|
|
|
%td
|
|
|
|
%span.monospace= project.path_with_namespace + ".git"
|
2011-10-08 23:36:38 +02:00
|
|
|
%td= project.users_projects.count
|
|
|
|
%td= last_commit(project)
|
2012-08-11 00:07:50 +02:00
|
|
|
%td= link_to 'Edit', edit_admin_project_path(project), id: "edit_#{dom_id(project)}", class: "btn small"
|
|
|
|
%td.bgred= link_to 'Destroy', [:admin, project], confirm: "REMOVE #{project.name}? Are you sure?", method: :delete, class: "btn small danger"
|
2012-11-23 05:31:09 +01:00
|
|
|
= paginate @projects, theme: "admin"
|