2012-10-03 09:49:43 +00:00
|
|
|
= render 'admin/shared/projects_head'
|
2012-08-25 17:31:19 +00:00
|
|
|
%h3.page_title
|
2012-02-11 17:56:18 +00:00
|
|
|
Projects
|
2012-08-10 22:07:50 +00:00
|
|
|
= link_to 'New Project', new_admin_project_path, class: "btn small right"
|
2012-04-13 05:12:34 +00:00
|
|
|
%br
|
2012-08-23 21:04:43 +00:00
|
|
|
= form_tag admin_projects_path, method: :get, class: 'form-inline' do
|
2012-08-10 22:07:50 +00:00
|
|
|
= text_field_tag :name, params[:name], class: "xlarge"
|
|
|
|
= submit_tag "Search", class: "btn submit primary"
|
2012-06-21 15:54:57 +00:00
|
|
|
|
2012-09-03 18:53:16 +00:00
|
|
|
%table
|
2011-11-02 15:21:17 +00:00
|
|
|
%thead
|
2011-10-08 21:36:38 +00:00
|
|
|
%th Name
|
|
|
|
%th Path
|
|
|
|
%th Team Members
|
|
|
|
%th Last Commit
|
2012-07-19 04:05:57 +00:00
|
|
|
%th Edit
|
|
|
|
%th.cred Danger Zone!
|
2011-10-08 21:36:38 +00:00
|
|
|
|
|
|
|
- @admin_projects.each do |project|
|
|
|
|
%tr
|
2011-10-14 21:12:02 +00:00
|
|
|
%td= link_to project.name, [:admin, project]
|
2011-10-08 21:36:38 +00:00
|
|
|
%td= project.path
|
|
|
|
%td= project.users_projects.count
|
|
|
|
%td= last_commit(project)
|
2012-08-10 22:07:50 +00: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"
|
|
|
|
= paginate @admin_projects, theme: "admin"
|