  <% 
  if user_for_thumbnail.sex == 'male'
    @user_sex = 'gender-man'
  elsif user_for_thumbnail.sex == 'female'
    @user_sex = 'gender-woman'
  else
    @user_sex = 'gender-none'
  end
  %>    
  <li id="<%= dom_id user_for_thumbnail %>">
    <div class="member-avatar <%= @user_sex %>">
      <div class="action">

        <%= link_to(content_tag(:i, nil, :class => 'icon-edit'),edit_admin_users_new_interface_path(user_for_thumbnail),:class=>"edit" ) if is_admin?%>
        <%= link_to(content_tag(:i, nil, :class => 'icon-key'),admin_users_new_interface_edit_privilege_path(user_for_thumbnail),:class=>"key" ) if is_admin? and current_user.id != user_for_thumbnail.id %>
        <%= link_to(content_tag(:i, nil, :class => 'icon-trash'), admin_users_new_interface_path(user_for_thumbnail, :at=>params[:at]), :confirm => t(:sure?), :method => :delete, :class=>"trash", :remote => true) if is_admin? %>
        
      </div>
      <%= image_tag(user_for_thumbnail.avatar) %>
    </div>
    <h4 class="member-name text-center"><%= link_to (user_for_thumbnail.name && user_for_thumbnail.name != user_for_thumbnail.email ? user_for_thumbnail.name : user_for_thumbnail.user_id),admin_users_new_interface_path(user_for_thumbnail)%></h4>
  </li>