2012-10-15 21:19:17 +02:00
|
|
|
- title @user.nick
|
|
|
|
|
|
|
|
.row-fluid
|
|
|
|
.span3
|
|
|
|
.well
|
2013-02-03 19:38:18 +01:00
|
|
|
%h4= t '.person'
|
|
|
|
%p= t '.member_since', time: distance_of_time_in_words(Time.now, @user.created_on)
|
2012-10-15 21:19:17 +02:00
|
|
|
%dl
|
2013-02-03 19:38:18 +01:00
|
|
|
%dt= t '.nick'
|
2012-10-15 21:19:17 +02:00
|
|
|
%dd= @user.nick
|
2013-02-03 19:38:18 +01:00
|
|
|
%dt= t '.name'
|
2012-10-15 21:19:17 +02:00
|
|
|
%dd= h @user.name
|
2013-02-03 19:38:18 +01:00
|
|
|
%dt= t '.email'
|
2012-10-15 21:19:17 +02:00
|
|
|
%dd= @user.email
|
2013-02-03 19:38:18 +01:00
|
|
|
%dt= t '.phone'
|
2012-10-15 21:19:17 +02:00
|
|
|
%dd= @user.phone
|
2013-02-03 19:38:18 +01:00
|
|
|
%dt= t 'admin.access_to'
|
2012-10-15 21:19:17 +02:00
|
|
|
%dd= format_roles(@user)
|
|
|
|
.span5
|
|
|
|
.well
|
2013-02-03 19:38:18 +01:00
|
|
|
%h4= t '.preference'
|
2012-10-15 21:19:17 +02:00
|
|
|
%table.table
|
|
|
|
- for setting in User::setting_keys.keys
|
|
|
|
%tr
|
|
|
|
%td= User::setting_keys[setting]
|
2013-02-03 19:38:18 +01:00
|
|
|
%td= @user.settings[setting] == '1' ? t('simple_form.yes') : t('simple_form.no')
|
2012-10-15 21:19:17 +02:00
|
|
|
.span3
|
|
|
|
.well
|
2013-02-03 19:38:18 +01:00
|
|
|
%h4= t '.groupabos'
|
2012-10-15 21:19:17 +02:00
|
|
|
%ul.unstyled
|
|
|
|
- for membership in Membership.find_all_by_user_id(@user.id)
|
|
|
|
%li= link_to(membership.group.name, [:admin, membership.group])
|
|
|
|
|
|
|
|
%hr/
|
|
|
|
%p
|
2013-04-04 02:49:52 +02:00
|
|
|
= link_to t('ui.edit'), edit_admin_user_path(@user), class: 'btn'
|
|
|
|
= link_to t('ui.delete'), [:admin, @user], :confirm => t('.confirm', user: @user.first_name),
|
2012-10-15 21:19:17 +02:00
|
|
|
:method => :delete, class: 'btn btn-danger'
|
2013-02-03 19:38:18 +01:00
|
|
|
= link_to t('.send_message'), new_message_path(:message => {:mail_to => @user.id}), class: 'btn'
|