[openstreetmap/openstreetmap-website] Make share buttons use Bootstrap icons (PR #6738)

Marwin Hochfelsner notifications at github.com
Sun Jan 25 09:54:15 UTC 2026


@hlfan commented on this pull request.



> -      "mailto:?subject=#{title}&body=#{url}"
-    when :x
-      "https://x.com/intent/tweet?url=#{url}&text=#{title}"
-    when :linkedin
-      "https://www.linkedin.com/sharing/share-offsite/?url=#{url}"
-    when :facebook
-      "https://www.facebook.com/sharer/sharer.php?u=#{url}&t=#{title}"
-    when :mastodon
-      "https://mastodonshare.com/?text=#{title}&url=#{url}"
-    when :telegram
-      "https://t.me/share/url?url=#{url}&text=#{title}"
-    when :bluesky
-      "https://bsky.app/intent/compose?text=#{title}+#{url}"
-    else
-      raise ArgumentError, "Unsupported platform: #{platform}"
+        link_to tag.i(:class => "bi bi-#{share[:icon] || share[:site]}", :aria => { :label => I18n.t("application.share.#{share[:site]}.alt") }), share_url, link_options

Agree, this even makes the diff nicer.

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

Message ID: <openstreetmap/openstreetmap-website/pull/6738/review/3703617190 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260125/5a610342/attachment-0001.htm>


More information about the rails-dev mailing list