X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/26af28b7cb72f128b3426ab663dd6f042cfd6642..b072c2935f8f79e16b2b63cc5e01fc34326f7daa:/app/views/notes/show.html.erb
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 -%>