2011-10-08 23:36:38 +02:00
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Code
|
|
|
|
%th Path
|
|
|
|
%th Team Members
|
|
|
|
%th Last Commit
|
|
|
|
%th
|
|
|
|
%th
|
|
|
|
%th
|
|
|
|
|
|
|
|
- @admin_projects.each do |project|
|
|
|
|
%tr
|
2011-10-14 23:12:02 +02:00
|
|
|
%td= link_to project.name, [:admin, project]
|
2011-10-08 23:36:38 +02:00
|
|
|
%td= project.code
|
|
|
|
%td= project.path
|
|
|
|
%td= project.users_projects.count
|
|
|
|
%td= last_commit(project)
|
|
|
|
%td= link_to 'Show', [:admin, project]
|
|
|
|
%td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}"
|
|
|
|
%td= link_to 'Destroy', [:admin, project], :confirm => 'Are you sure?', :method => :delete
|
|
|
|
|
|
|
|
%br
|
|
|
|
|
|
|
|
= paginate @admin_projects
|
|
|
|
= link_to 'New Project', new_admin_project_path
|