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

11 lines
301 B
Text

%table.table
- @show_attributes.each do |attr|
%tr
%td{style: 'width:20%'}
%b
= attr.capitalize.gsub('_', ' ')
- if attr == 'roles'
%td
= @user.show_roles.map { |x| x[0].titleize + ' ' + x[1] }.join ', '
- else
%td= @user.send(attr)