28 lines
684 B
Plaintext

:css
#content { padding-top: 3em; }
- if policy(@profile).edit?
.contain
= link_to 'Edit', edit_profile_path(@profile)
%h1
= @profile.name
%p
= @profile.summary
.social-links
- @profile.social_links.each do |social_link|
- if policy(social_link).destroy?
%span.controls
= link_to '📝', edit_social_link_path(social_link)
= link_to '❌', social_link, method: :delete, data: { confirm: 'Are you sure?' }
= link_to social_link.to_icon.html_safe, social_link.to_url
- if policy(@profile).edit?
%br= link_to '+ Add Social Link', new_social_link_path(profile_id: @profile.id)
%h2 About #{@profile.name}
.about
%p= @profile.about