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
|
2011-10-08 23:36:38 +02:00
|
|
|
%tr{:id => dom_id(member)}
|
|
|
|
%td
|
2011-10-21 14:56:37 +02:00
|
|
|
= link_to image_tag(gravatar_icon(user.email), :class => "left", :width => 40, :style => "padding:0 5px;"), project_team_member_path(@project, member)
|
|
|
|
|
2011-11-30 22:41:00 +01:00
|
|
|
= link_to truncate(user.name, :lenght => 24), project_team_member_path(@project, member)
|
|
|
|
%br
|
|
|
|
.cgray{:style => "padding-top:10px;"}= truncate user.email, :lenght => 24
|
2011-12-07 00:27:07 +01:00
|
|
|
%td
|
|
|
|
= form_for(member, :as => :team_member, :url => project_team_member_path(@project, member)) do |f|
|
|
|
|
= f.select :project_access, options_for_select(Project.access_options, member.project_access), {}, :class => "project-access-select", :disabled => !allow_admin
|
|
|
|
%td
|
|
|
|
= form_for(member, :as => :team_member, :url => project_team_member_path(@project, member)) do |f|
|
|
|
|
= f.select :repo_access, options_for_select(Repository.access_options, member.repo_access), {}, :class => "repo-access-select", :disabled => !allow_admin
|
|
|
|
- if allow_admin
|
2011-10-08 23:36:38 +02:00
|
|
|
%td
|
2011-11-21 08:26:10 +01:00
|
|
|
= link_to 'Cancel', project_team_member_path(:project_id => @project, :id => member.id), :confirm => 'Are you sure?', :method => :delete, :class => "grey-button negative delete-team-member", :remote => true
|
2011-12-07 00:27:07 +01:00
|
|
|
|