[openstreetmap/openstreetmap-website] Add social sharing functionality (PR #4985)
Emin Kocan
notifications at github.com
Thu Aug 15 01:30:51 UTC 2024
@kcne commented on this pull request.
> + :div,
+ :class => "social-share-button d-flex gap-1 align-items-end flex-wrap",
+ :data => {
+ :title => opts[:title],
+ :url => opts[:url],
+ :desc => opts[:desc],
+ :via => opts[:via]
+ }
+ ) do
+ social_buttons = valid_sites.filter_map do |site|
+ if SocialShareButtonHelper.icon_path(site).empty?
+ Rails.logger.error("Invalid site: #{site}")
+ next
+ end
+
+ link_to "", {
Good point, just refactored according to this
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4985#discussion_r1717765410
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4985/review/2239478462 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240814/0038afd5/attachment.htm>
More information about the rails-dev
mailing list