22 lines
438 B
Plaintext
22 lines
438 B
Plaintext
- if policy(@profile).edit?
|
|
.contain
|
|
= link_to 'Edit', edit_profile_path(@profile)
|
|
|
|
%p
|
|
= @profile.name
|
|
%p
|
|
= @profile.summary
|
|
|
|
-# Social Links
|
|
%p
|
|
- @profile.social_links.each do |social_link|
|
|
= link_to "#{social_link.url}", "https://#{social_link.url}"
|
|
- if policy(@profile).edit?
|
|
%br= link_to '+ Add Social Link', new_social_link_path(profile_id: @profile.id)
|
|
|
|
%h2 About #{@profile.name}
|
|
|
|
.about
|
|
= @profile.about
|
|
|