[openstreetmap/openstreetmap-website] Add tooltip to changeset comment anchor icon (#6311) (PR #6900)
Leandre Chamberland-Dozois
notifications at github.com
Mon Mar 16 19:38:26 UTC 2026
## Summary
Fixes #6311
The `bi-link-45deg` icon next to each changeset comment had no tooltip, leaving users without any hint about what the icon does or what happens when clicked.
## Changes
**`app/views/changesets/show.html.erb`**
Added Bootstrap tooltip via `data-bs-toggle` and `data-bs-title` to the link-to-comment anchor:
```erb
<%= link_to tag.i(:class => "align-bottom bi bi-link-45deg fs-6 lh-1", :aria => { :hidden => true }),
"#c\#{comment.id}",
:data => { :bs_toggle => "tooltip", :bs_title => t(".link_to_comment") } %>
```
**`config/locales/en.yml`**
Added translation key under `changesets.show`:
```yaml
link_to_comment: "Link to this comment"
```
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6900
-- Commit Summary --
* Add tooltip to changeset comment link-to-comment anchor icon (#6311)
-- File Changes --
M app/views/changesets/show.html.erb (4)
M config/locales/en.yml (1)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6900.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6900.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6900
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6900 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260316/54f7542a/attachment-0001.htm>
More information about the rails-dev
mailing list