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

17 lines
446 B
Plaintext
Raw Normal View History

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)}
- 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