X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/100a7f8979023a2265c9fa58e6bed317b5937670..01c2aabd95ea9f8dcab18d6c7dd2a88fcbd87a68:/app/views/notes/show.html.erb?ds=sidebyside diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index fda8946b6..a7baccf85 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -49,6 +49,8 @@
+
<% if current_user.moderator? -%> <%= submit_tag t(".hide"), :name => "hide", :class => "btn btn-light", @@ -65,10 +67,16 @@ :url => comment_api_note_url(@note, "json") } %>
+ <% else -%> +

+ <%= link_to t(".log_in_to_comment"), login_path(:referer => request.fullpath) %> +

<% end -%> <% else %>
+
<% 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") %>">