From: Tom Hughes Date: Thu, 17 May 2018 10:29:28 +0000 (+0100) Subject: Convert note view to use server side conditions X-Git-Tag: live~3046 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/99492de1d30fcc93576e33b6b0362a455105f72c?hp=68f7df96d681d83c04beb36a173bd056a0a248cb;ds=sidebyside Convert note view to use server side conditions Fixes #1869 --- 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 %>