From 99492de1d30fcc93576e33b6b0362a455105f72c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 17 May 2018 11:29:28 +0100 Subject: [PATCH 1/1] Convert note view to use server side conditions Fixes #1869 --- app/views/browse/note.html.erb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index ac0ba9a23..37067c311 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -40,8 +40,12 @@
- - + <% if current_user and current_user.moderator? -%> + + <% end -%> + <% if current_user -%> + + <% end -%>
@@ -49,8 +53,12 @@
- - + <% if current_user and current_user.moderator? -%> + + <% end -%> + <% if current_user -%> + + <% end -%>
<% end %> -- 2.43.2