2012-06-04 01:37:27 +03:00
|
|
|
%h3
|
2012-02-11 19:56:18 +02:00
|
|
|
Projects
|
|
|
|
= link_to 'New Project', new_admin_project_path, :class => "btn small right"
|
2012-04-13 08:12:34 +03:00
|
|
|
%br
|
2012-04-16 23:33:03 +03:00
|
|
|
%table.admin-table
|
2011-11-02 11:21:17 -04:00
|
|
|
%thead
|
2011-10-09 00:36:38 +03:00
|
|
|
%th Name
|
|
|
|
%th Path
|
|
|
|
%th Team Members
|
2012-04-17 20:27:18 +03:00
|
|
|
%th Post Receive
|
2011-10-09 00:36:38 +03:00
|
|
|
%th Last Commit
|
|
|
|
%th
|
|
|
|
%th
|
|
|
|
|
|
|
|
- @admin_projects.each do |project|
|
|
|
|
%tr
|
2011-10-15 00:12:02 +03:00
|
|
|
%td= link_to project.name, [:admin, project]
|
2011-10-09 00:36:38 +03:00
|
|
|
%td= project.path
|
|
|
|
%td= project.users_projects.count
|
2012-04-17 20:27:18 +03:00
|
|
|
%td= check_box_tag :post_receive_file, 1, project.has_post_receive_file?, :disabled => true
|
2011-10-09 00:36:38 +03:00
|
|
|
%td= last_commit(project)
|
2012-02-11 19:56:18 +02: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-22 00:09:56 +02:00
|
|
|
= paginate @admin_projects, :theme => "admin"
|