<%= case user[:role]
when 0 then I18n.t('views.role_user')
when 1 then I18n.t('views.role_creator')
when 2 then I18n.t('views.role_admin')
else I18n.t('views.role_unknown')
end %>
<% if user[:email].nil? || user[:email].strip == '' %>
<%= I18n.t('views.no_email') %>
<% else %>
<%= user[:email] %>
<% end %>