_users_group.html.haml 684 Bytes
Newer Older
1
2
- user = member.user
- return unless user
3
%li{class: dom_class(member)}
4
5
6
  = image_tag gravatar_icon(user.email, 16), class: "avatar s16"
  %strong= user.name
  %span.cgray= user.username
7
8
  - if user == current_user
    %span.label.label-success It's you
9
10
11
12
13
14

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

    - 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