_users_group.html.haml 617 Bytes
Newer Older
1 2
- user = member.user
- return unless user
3
%li{class: dom_class(member)}
4 5 6 7 8 9 10 11 12
  = image_tag gravatar_icon(user.email, 16), class: "avatar s16"
  %strong= user.name
  %span.cgray= user.username

  %span.pull-right
    - if @group.owners.include?(user)
      %span.label.label-info Group Owner
    - else
      = member.human_access
13 14 15 16

    - if show_controls && user != current_user
      = link_to group_users_group_path(@group, member), confirm: remove_user_from_group_message(@group, user), method: :delete, remote: true, class: "btn-tiny btn btn-remove", title: 'Remove user from group' do
        %i.icon-minus.icon-white