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-02-08 00:00:49 +01:00
|
|
|
%li{:id => dom_id(member), :class => "team_member_row"}
|
2012-01-29 23:43:14 +01:00
|
|
|
= link_to project_team_member_path(@project, member), :title => user.name do
|
2012-02-08 00:00:49 +01:00
|
|
|
= image_tag gravatar_icon(user.email, 60), :class => "thumbnail"
|
2012-01-28 10:54:11 +01:00
|
|
|
.row
|
2012-02-08 00:00:49 +01:00
|
|
|
.span8
|
2012-01-28 10:54:11 +01:00
|
|
|
%h4
|
|
|
|
= truncate(user.name, :lenght => 24)
|
|
|
|
%small= truncate user.email, :lenght => 24
|
2011-10-21 14:56:37 +02:00
|
|
|
|
2012-01-28 10:54:11 +01:00
|
|
|
.span3
|
2011-12-07 00:27:07 +01:00
|
|
|
= form_for(member, :as => :team_member, :url => project_team_member_path(@project, member)) do |f|
|
2012-02-15 22:51:04 +01:00
|
|
|
= f.select :_project_access, options_for_select(UsersProject.access_roles, member.role_access), {}, :class => "medium project-access-select", :disabled => !allow_admin
|
|
|
|
-#.span3
|
|
|
|
-#= 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 => "medium repo-access-select", :disabled => !allow_admin
|
2012-01-28 10:54:11 +01:00
|
|
|
- if @project.owner == user
|
|
|
|
%span.label Project Owner
|