2011-10-11 22:00:00 +02:00
|
|
|
%table.round-borders#projects-list
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Path
|
|
|
|
%th Code
|
|
|
|
%th Web
|
|
|
|
%th Git
|
|
|
|
%th Admin
|
|
|
|
%th Actions
|
|
|
|
|
|
|
|
- @projects.each do |project|
|
|
|
|
%tr{ :class => "project", :url => project_path(project) }
|
2011-11-05 20:00:05 +01:00
|
|
|
%td
|
|
|
|
= project.name
|
2011-11-07 18:48:58 +01:00
|
|
|
.small-tags= tag_list project
|
|
|
|
|
2011-11-05 20:00:05 +01:00
|
|
|
|
2011-10-11 22:00:00 +02:00
|
|
|
%td= truncate project.url_to_repo
|
|
|
|
%td= project.code
|
|
|
|
%td= check_box_tag "read", 1, project.readers.include?(current_user), :disabled => :disabled
|
|
|
|
%td= check_box_tag "commit", 1, project.writers.include?(current_user), :disabled => :disabled
|
|
|
|
%td= check_box_tag "admin", 1, project.admins.include?(current_user), :disabled => :disabled
|
2011-10-26 15:46:25 +02:00
|
|
|
%td
|
2011-10-11 22:00:00 +02:00
|
|
|
-if can? current_user, :admin_project, project
|
|
|
|
= link_to 'Edit', edit_project_path(project), :class => "lbutton positive"
|
|
|
|
%br
|
|
|
|
|