mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 12:14:03 +00:00
11 lines
301 B
Text
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)
|