<%= _('Users') %>

<% @users_found.each do |user| %> <% end if @users_found %> <% if !params[:query] || params[:query].length <= 2 %> <% end %>
<%= _('Name') %>
<%= image_tag('/images/grip-clue.png') %> <%= profile_image(user, :icon) %> <%= [link_to_profile(user.short_name + " (#{user.identifier})", user.identifier, :title => user.name), (user.sex ? gettext(user.sex.capitalize) : _('Sex not informed')), user.location.empty? ? nil : user.location ].compact.join(' — ') %>
<%= draggable_element(user.identifier, :revert => true) %>
<%= button_to_remote_without_text(:add, @button_alt, { :loading => '$("members-list").addClassName("loading")', :update => 'members-list', :url => {:id => user.id, :profile => profile.identifier}.merge(@add_action), :success => "$('tr-#{user.identifier}').hide()", :complete => '$("members-list").removeClassName("loading")'}) %>
<%= _('You must type at least 3 characters') %>