2012-03-07 21:34:49 +00:00
|
|
|
%tr{:id => "Row#{project_counter}"}
|
|
|
|
%td
|
|
|
|
= link_to project do
|
|
|
|
.table-sort-left= image_tag visibility_icon(project.visibility)
|
2012-03-27 16:50:00 +01:00
|
|
|
.table-sort-right
|
|
|
|
= link_to project.owner.uname, project.owner.class == User ? user_path(project.owner) : group_path(project.owner) #{project.owner.uname} / #{project.name}
|
|
|
|
#{ ' / ' }
|
|
|
|
= link_to project.name, project_path(project)
|
2012-03-07 21:34:49 +00:00
|
|
|
%td.td2= project.description
|
2012-03-29 17:27:33 +01:00
|
|
|
- alone_member = alone_member? project
|
|
|
|
%td
|
|
|
|
%span{:class => participant_class(alone_member, project)}
|
|
|
|
= t("layout.collaborators.role_names.#{project.relations.by_user_through_groups(current_user).first.role}")
|
2012-03-27 16:50:00 +01:00
|
|
|
%td.td5
|
2012-03-29 17:27:33 +01:00
|
|
|
- unless project.owner == current_user or !alone_member
|
2012-03-27 16:50:00 +01:00
|
|
|
= link_to remove_user_project_path(project), :method => :delete, :confirm => t("layout.confirm") do
|
|
|
|
%span.delete
|