2015-10-20 21:49:59 -05:00
|
|
|
%h2= @user.name
|
|
|
|
|
|
|
|
%ul.sub-nav
|
|
|
|
%li= link_to 'back', :back
|
|
|
|
%li= link_to 'edit', edit_user_path(@user)
|
|
|
|
|
|
|
|
%p Email: #{mail_to(@user.email, nil, encode: 'hex')}
|
|
|
|
%p Phone: #{number_to_phone @user.phone} #{page_link(@user)}
|
2015-10-23 19:57:32 -05:00
|
|
|
%p Admin: #{@user.admin?}
|
|
|
|
%p Staff: #{@user.staff?}
|
|
|
|
%p Account Active: #{@user.active?}
|
|
|
|
%p Has Signed in: #{!@user.authentications.blank?}
|
2015-10-20 21:49:59 -05:00
|
|
|
|
|
|
|
- unless @user.children.empty?
|
|
|
|
%p Children:
|
|
|
|
%ul
|
|
|
|
- @user.children.each do |child|
|
|
|
|
%li
|
|
|
|
= link_to child.name, child_path(child)
|
|
|
|
= link_to 'remove', del_parenthood_path(@user, child), method: :delete
|