osem-fcy/app/views/admin/users/show.html.haml
Stella Rouzi aeb28833f1 fixes
2014-08-13 22:53:14 +03:00

14 lines
376 B
Text

- if can? :edit, @user
.pull-right
= link_to "Edit", edit_admin_user_path(@user), class: 'btn btn-primary'
%table.table
- @show_attributes.each do |attr|
%tr
%td{style: 'width:20%'}
%b
= attr.capitalize.gsub('_', ' ')
- if attr == 'roles'
%td
= show_roles(@user.get_roles)
- else
%td= @user.send(attr)