From: Máté Gyöngyösi Date: Mon, 3 Mar 2025 01:22:35 +0000 (+0100) Subject: Add permalink button to changeset comments X-Git-Tag: live~55^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a9752be6b39c3228f55ef0cb085e50224675aa0e?ds=inline;hp=-c 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. --- a9752be6b39c3228f55ef0cb085e50224675aa0e 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 %>