From c87379ba69cad29b003f919b371b4227cc9a8d37 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 29 Sep 2022 01:11:12 +0300 Subject: [PATCH] Remove 'Hide' button from hidden note page --- app/views/browse/note.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -%> -- 2.39.5