[openstreetmap/openstreetmap-website] Add social profile links (PR #5439)
    Anton Khorev 
    notifications at github.com
       
    Mon Feb 17 15:54:33 UTC 2025
    
    
  
@AntonKhorev commented on this pull request.
> @@ -0,0 +1,8 @@
+<% social_links.each do |social_link| %>
+  <div class="text-body-secondary d-flex mb-3">
+    <%= image_tag "social_link_icons/#{social_link.parsed[:platform].nil? ? 'other' : social_link.parsed[:platform]}.svg",
+                  :alt => social_link.parsed[:platform].nil? ? "other" : social_link.parsed[:platform],
+                  :class => "me-2" %>
+    <%= link_to social_link.parsed[:name], social_link.url, :class => "text-body-secondary d-block text-truncate", :rel => "nofollow me" %>
Do you need `d-block` on flex items?
-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5439#pullrequestreview-2621433442
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5439/review/2621433442 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250217/0dddd1e2/attachment.htm>
    
    
More information about the rails-dev
mailing list