<h1>All users</h1>

<%= will_paginate %>

<ul class="users">
 <%= render @users %>
 <% if current_user.admin? %>
 | <%= link_to "delete", @user, :method => :delete, :confirm => "Are you sure?",
                               :title => "Delete #{@user.name}" %>
 <% end %>   
</ul>

<%= will_paginate %>
<h1>All users</h1>

<%= will_paginate %>

<ul class="users">
    <%= render @users %>
    <% if current_user.admin? && !current_user?(user) %>
      | <%= link_to "delete", user, method: :delete, 
        data: { confirm: "Are you sure?", title: "Delete #{user.name}" } %>
    <% end %>   
</ul>

<%= will_paginate %>
Fix delete bouton in index user
Fix delete bouton in index user
