[openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

Marwin Hochfelsner notifications at github.com
Wed Jul 2 17:42:15 UTC 2025


@hlfan commented on this pull request.



> @@ -17,10 +17,16 @@ def format_value(key, value)
     elsif wdt = wikidata_links(key, value)
       # IMPORTANT: Note that wikidata_links() returns an array of hashes, unlike for example wikipedia_link(),
       # which just returns one such hash.
+      svg = tag.a :href => "", :class => "float-end m-1 d-flex wdt-preview", :data => { :qids => wdt.map { |w| w[:title] } } do

Your suggested solution changes the focused state to this: ![image](https://github.com/user-attachments/assets/badc6e8f-844a-4f27-b4b4-8bab1c4f4fa2)
I haven't found a `disabled` and `outline` compatible button solution yet.

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

Message ID: <openstreetmap/openstreetmap-website/pull/6127/review/2980086985 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250702/f9748c65/attachment.htm>


More information about the rails-dev mailing list