From a9752be6b39c3228f55ef0cb085e50224675aa0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A1t=C3=A9=20Gy=C3=B6ngy=C3=B6si?= Date: Mon, 3 Mar 2025 02:22:35 +0100 Subject: [PATCH] Add permalink button to changeset comments Add a chain symbol button to the end of the line (instead of formatting time_ago as a link and losing the visibility of the exact timestamp on hover). As suggested at https://github.com/openstreetmap/openstreetmap-website/pull/4789#discussion_r1980994254. This is an improvement of https://github.com/openstreetmap/openstreetmap-website/pull/4134/commits/d495d6799fc3e8521ebc25dce9eb062cff94e117. --- app/views/changesets/show.html.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/changesets/show.html.erb b/app/views/changesets/show.html.erb index 70b1877b5..3f1aeb201 100644 --- a/app/views/changesets/show.html.erb +++ b/app/views/changesets/show.html.erb @@ -52,6 +52,12 @@ :data => { :method => comment.visible ? "DELETE" : "POST", :url => api_changeset_comment_visibility_path(comment) } %> <% end %> + + + + + +
<%= comment.body.to_html %> -- 2.39.5