tap/app/views/users/_user.html.haml
2015-09-17 14:05:33 +02:00

8 lines
251 B
Text

%tr
%td= user.id
%td= image_tag user.avatar(:small)
%td= user.name
%td= euro(user.debt)
- if current_user.admin?
%td
= link_to "Delete", user_path(user), method: :delete, class: "btn btn-danger", data: { confirm: "Are you sure?" }