<td>
  <%= link_to user.display_name, user %>
</td>
<td>
  <% if policy(user).update? %>
    <%= form_for(user) do |f| %>
      <%= f.select(:role, User.roles.keys.map {|role| [role.titleize,role]}) %>
      <%= f.submit 'Change Role', :class => 'button-xs' %>
    <% end %>
  <% end %>
</td>
<td>
  <% if policy(user).destroy? %>
    <%= link_to("Delete user", user_path(user), :data => { :confirm => "Are you sure?" }, :method => :delete, :class => 'button-xs') unless user == current_user %>
  <% end %>
</td>
