%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