]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/note.html.erb
Allow reporting of anonymous notes
[rails.git] / app / views / browse / note.html.erb
index a3b5f0c544d8dd72de78be5d93ad3890128171d0..723f9d1977e777fdd7fc225ee9d4ed5d1fad00fa 100644 (file)
@@ -3,8 +3,8 @@
 <h2>
   <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
   <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
-  <% if @user && @note.author && @user.id != @note.author.id %>
-    <%= link_to new_issue_url(reportable_id: @note.id, reportable_type: @note.class.name, reported_user_id: @note.author.id,referer: request.fullpath), :title => t('browse.note.report') do %>
+  <% if current_user && current_user != @note.author %>
+    <%= link_to new_report_url(reportable_id: @note.id, reportable_type: @note.class.name), :title => t('browse.note.report') do %>
         &nbsp;&#9872;
     <% end %>
   <% end %>