sms-pager/app/views/users/show.html.haml

21 lines
585 B
Plaintext

%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)}
%p Admin: #{@user.admin?}
%p Staff: #{@user.staff?}
%p Account Active: #{@user.active?}
%p Has Signed in: #{!@user.authentications.blank?}
- 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