2011-10-08 23:36:38 +02:00
|
|
|
- user = member.user
|
2011-12-07 00:27:07 +01:00
|
|
|
- allow_admin = can? current_user, :admin_project, @project
|
2012-08-11 00:07:50 +02:00
|
|
|
%tr{id: dom_id(member), class: "team_member_row user_#{user.id}"}
|
2012-05-24 08:23:25 +02:00
|
|
|
%td
|
|
|
|
.right
|
2012-04-10 07:51:08 +02:00
|
|
|
- if @project.owner == user
|
|
|
|
%span.label Project Owner
|
2012-04-13 07:12:34 +02:00
|
|
|
- if user.blocked
|
|
|
|
%span.label Blocked
|
2012-05-24 08:23:25 +02:00
|
|
|
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to project_team_member_path(@project, member), title: user.name, class: "dark" do
|
2012-09-02 18:31:16 +02:00
|
|
|
= image_tag gravatar_icon(user.email, 40), class: "avatar s32"
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to project_team_member_path(@project, member), title: user.name, class: "dark" do
|
|
|
|
%strong= truncate(user.name, lenght: 40)
|
2012-05-24 08:23:25 +02:00
|
|
|
%br
|
|
|
|
%div.cgray= user.email
|
|
|
|
|
|
|
|
%td
|
2012-08-11 00:07:50 +02:00
|
|
|
= form_for(member, as: :team_member, url: project_team_member_path(@project, member)) do |f|
|
|
|
|
= f.select :project_access, options_for_select(UsersProject.access_roles, member.project_access), {}, class: "medium project-access-select", disabled: !allow_admin
|