[openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)
Anton Khorev
notifications at github.com
Sun Jun 29 14:51:52 UTC 2025
@AntonKhorev commented on this pull request.
> + $("<img>")
+ .attr({ src: OSM.WIKIMEDIA_COMMONS_URL + "Special:FilePath/" + data.icon, height: "32" })
+ .addClass("float-end mb-1 ms-2")
+ .appendTo(cell);
In case anyone asks for an image attribution, we can have it linked to its Commons page.
```suggestion
$("<a>")
.attr({ href: OSM.WIKIMEDIA_COMMONS_URL + "File:" + data.icon })
.append(
$("<img>")
.attr({ src: OSM.WIKIMEDIA_COMMONS_URL + "Special:FilePath/" + data.icon, height: "32" }))
.addClass("float-end mb-1 ms-2")
.appendTo(cell);
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6127#pullrequestreview-2969284694
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6127/review/2969284694 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250629/b590a4b4/attachment.htm>
More information about the rails-dev
mailing list