From: Anton Khorev Date: Wed, 28 Sep 2022 22:11:12 +0000 (+0300) Subject: Remove 'Hide' button from hidden note page X-Git-Tag: live~1563^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c87379ba69cad29b003f919b371b4227cc9a8d37 Remove 'Hide' button from hidden note page --- diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index fb186e55e..fdb4eed09 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -60,7 +60,7 @@
- <% if current_user and current_user.moderator? -%> + <% if @note.status != "hidden" and current_user and current_user.moderator? -%> " class="btn btn-light" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>"> <% end -%> <% if current_user -%>