_show.html.haml 896 Bytes
Newer Older
gitlabhq's avatar
gitlabhq committed
1
- user = member.user
2
- allow_admin = can? current_user, :admin_project, @project
3
%tr{id: dom_id(member), class: "team_member_row user_#{user.id}"}
4
5
  %td
    .right
randx's avatar
randx committed
6
7
      - if @project.owner == user
        %span.label Project Owner
randx's avatar
randx committed
8
9
      - if user.blocked
        %span.label Blocked
10

11
    = link_to project_team_member_path(@project, member), title: user.name, class: "dark" do
randx's avatar
randx committed
12
      = image_tag gravatar_icon(user.email, 40), class: "avatar s32"
13
14
    = link_to project_team_member_path(@project, member), title: user.name, class: "dark" do
      %strong= truncate(user.name, lenght: 40)
15
16
17
18
    %br
    %div.cgray= user.email

  %td
19
20
    = 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