2012-02-11 17:56:18 +00:00
|
|
|
%h3
|
|
|
|
Projects
|
|
|
|
= link_to 'New Project', new_admin_project_path, :class => "btn small right"
|
2012-04-13 05:12:34 +00:00
|
|
|
%br
|
2012-04-16 20:33:03 +00:00
|
|
|
%table.admin-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
|
|
|
|
%th
|
|
|
|
%th
|
|
|
|
|
|
|
|
- @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-02-11 17:56:18 +00:00
|
|
|
%td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}", :class => "btn small"
|
|
|
|
%td= link_to 'Destroy', [:admin, project], :confirm => 'Are you sure?', :method => :delete, :class => "btn small danger"
|
2012-03-21 22:09:56 +00:00
|
|
|
= paginate @admin_projects, :theme => "admin"
|