gitlabhq/app/views/team_members/_show.html.haml

18 lines
827 B
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
- user = member.user
- allow_admin = can? current_user, :admin_project, @project
2012-03-03 12:03:03 +01:00
%li{:id => dom_id(member), :class => "team_member_row wll"}
2012-01-28 10:54:11 +01:00
.row
.span8
2012-04-04 00:21:31 +02:00
= link_to project_team_member_path(@project, member), :title => user.name, :class => "dark" do
= image_tag gravatar_icon(user.email, 40), :class => "avatar"
%strong= truncate(user.name, :lenght => 40)
%div.cgray= user.email
2012-01-28 10:54:11 +01:00
.span3
= form_for(member, :as => :team_member, :url => project_team_member_path(@project, member)) do |f|
2012-02-16 08:03:55 +01:00
= f.select :project_access, options_for_select(UsersProject.access_roles, member.project_access), {}, :class => "medium project-access-select", :disabled => !allow_admin
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