[openstreetmap/openstreetmap-website] Add social profile links (PR #5439)

Anton Khorev notifications at github.com
Fri Jan 31 10:51:32 UTC 2025


@AntonKhorev commented on this pull request.



> +  <p class="text-body-secondary">
+    <%= image_tag "/assets/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", :rel => "nofollow me" %>
+  </p>

You can get line wraps like this, where the text goes below the icon:

![image](https://github.com/user-attachments/assets/6cd9b2b8-7dda-4b2d-86b4-1043510f877e)


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5439#pullrequestreview-2586271507
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5439/review/2586271507 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250131/54aa8472/attachment.htm>


More information about the rails-dev mailing list