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

29 lines
1.3 KiB
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
- user = member.user
- allow_admin = can? current_user, :admin_project, @project
%li{id: dom_id(user), class: "team_member_row user_#{user.id}"}
.row
.span6
= link_to project_team_member_path(@project, user), title: user.name, class: "dark" do
= image_tag gravatar_icon(user.email, 40), class: "avatar s32"
= link_to project_team_member_path(@project, user), title: user.name, class: "dark" do
%strong= truncate(user.name, lenght: 40)
%br
%small.cgray= user.email
2012-05-24 08:23:25 +02:00
2013-01-30 15:40:43 +01:00
.span5.pull-right
- if allow_admin
.left
= form_for(member, as: :team_member, url: project_team_member_path(@project, member.user)) do |f|
= f.select :project_access, options_for_select(UsersProject.access_roles, member.project_access), {}, class: "medium project-access-select span2"
2013-01-30 15:40:43 +01:00
.pull-right
- if current_user == user
%span.btn.disabled This is you!
- if @project.namespace_owner == user
2013-01-30 16:13:05 +01:00
%span.btn.disabled Owner
- elsif user.blocked
%span.btn.disabled.blocked Blocked
- elsif allow_admin
2013-01-29 21:29:21 +01:00
= link_to project_team_member_path(@project, user), confirm: remove_from_project_team_message(@project, user), method: :delete, class: "btn-tiny btn btn-remove" do
%i.icon-minus.icon-white
2012-09-10 08:13:45 +02:00