diff --git a/app/assets/stylesheets/profiles.sass b/app/assets/stylesheets/profiles.sass index 831724ad..157642af 100644 --- a/app/assets/stylesheets/profiles.sass +++ b/app/assets/stylesheets/profiles.sass @@ -18,7 +18,7 @@ a .profile background: linear-gradient(90deg, #e1b02777 0%, rgba(0,0,0,0) 88%) > a padding: 0 1em - .x-logo + .dscvr-logo, .x-logo width: 1.2em vertical-align: middle .controls diff --git a/app/models/social_link.rb b/app/models/social_link.rb index eee1c935..29ddf064 100644 --- a/app/models/social_link.rb +++ b/app/models/social_link.rb @@ -6,6 +6,8 @@ class SocialLink < ActiveRecord::Base case self.url when /twitter\.com/, /x\.com/ social_icon = "" + when /dscvr.one/ + social_icon = "" else social_icon = "🌐" end diff --git a/app/views/profiles/show.html.haml b/app/views/profiles/show.html.haml index be533fd4..b788bcc8 100644 --- a/app/views/profiles/show.html.haml +++ b/app/views/profiles/show.html.haml @@ -11,9 +11,7 @@ = @profile.summary .social-links - -# = "".html_safe - @profile.social_links.each do |social_link| - -# = link_to "#{social_icon} #{social_link.url}".html_safe, "https://#{social_link.url}" - if policy(social_link).destroy? %span.controls = link_to '📝', edit_social_link_path(social_link)