2011-10-17 15:21:29 +01:00
|
|
|
%table.table
|
|
|
|
%tr
|
2011-10-27 13:49:21 +01:00
|
|
|
%th= t("activerecord.attributes.project.name")
|
2011-10-31 13:45:16 +00:00
|
|
|
%th= t("activerecord.attributes.project.owner")
|
2011-10-17 15:21:29 +01:00
|
|
|
%th.last
|
|
|
|
- @projects.each do |project|
|
|
|
|
%tr{:class => cycle("odd", "even")}
|
2011-12-06 23:44:21 +00:00
|
|
|
%td= link_to "#{project.name}", project
|
2011-10-31 13:45:16 +00:00
|
|
|
%td= link_to "#{project.owner.name} (#{project.owner.uname})", project.owner
|
2011-10-27 13:49:21 +01:00
|
|
|
%td
|
2011-11-16 18:45:01 +00:00
|
|
|
= link_to t("layout.edit"), edit_project_path(project) if can? :update, project
|
2011-10-27 13:49:21 +01:00
|
|
|
|
|
2011-11-16 18:45:01 +00:00
|
|
|
= link_to t("layout.delete"), project_path(project), :method => :delete, :confirm => t("layout.projects.confirm_delete") if can? :destroy, project
|