[openstreetmap/openstreetmap-website] Add social sharing functionality (PR #4985)
Emin Kocan
notifications at github.com
Thu Aug 15 01:36:18 UTC 2024
@kcne commented on this pull request.
> + # Log invalid providers
+ invalid_sites.each do |invalid_site|
+ Rails.logger.error("Invalid site or icon not configured: #{invalid_site}")
+ end
+
+ content_tag(
+ :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|
Just a habit thing, now it's gone.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4985#discussion_r1717768358
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4985/review/2239482377 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240814/2f7fd287/attachment-0001.htm>
More information about the rails-dev
mailing list