tap/app/views/users/_user.html.erb

12 lines
338 B
Plaintext
Raw Normal View History

<tr>
2015-03-19 17:04:58 +00:00
<td><%= user.id %></td>
<td><%= image_tag user.avatar(:small) %></td>
<td><%= user.nickname %></td>
<td><%= euro(user.debt) %></td>
<% if current_user.admin? %>
<td>
<%= link_to "Delete", user_path(user), method: :delete, class: "btn btn-danger", data: { confirm: "Are you sure?" } %>
</td>
<% end %>
</tr>