From: Tom Hughes Date: Sun, 2 Jun 2024 09:52:43 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/4867' X-Git-Tag: live~798 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a0eeeaac5ebf2605bb0ae8d12158f58ec6269de3?hp=11fd2c9d62ba056dbd77b2cc15061d897e14f13f Merge remote-tracking branch 'upstream/pull/4867' --- diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index a04cbf9d9..17a6651cf 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -79,10 +79,14 @@
<% if @note.status != "hidden" and current_user and current_user.moderator? -%> - " class="btn btn-light" data-method="DELETE" data-url="<%= api_note_url(@note, "json") %>"> + <%= submit_tag t(".hide"), :name => "hide", :class => "btn btn-light", + :data => { :method => "DELETE", + :url => api_note_url(@note, "json") } %> <% end -%> <% if current_user -%> - " class="btn btn-primary" data-method="POST" data-url="<%= reopen_api_note_url(@note, "json") %>"> + <%= submit_tag t(".reactivate"), :name => "reopen", :class => "btn btn-primary", + :data => { :method => "POST", + :url => reopen_api_note_url(@note, "json") } %> <% end -%>