]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/note.html.erb
Refactor reportable_url to just return the url
[rails.git] / app / views / browse / note.html.erb
index a7dee697bb5b8cbb7b4a21a1361c69b16fa95579..f292ccd197ac7e3ce4a7261d4c45b26bea115bbd 100644 (file)
@@ -4,7 +4,7 @@
   <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
   <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
   <% if current_user && @note.author && current_user.id != @note.author.id %>
-    <%= link_to new_issue_url(reportable_id: @note.id, reportable_type: @note.class.name, referer: request.fullpath), :title => t('browse.note.report') do %>
+    <%= link_to new_report_url(reportable_id: @note.id, reportable_type: @note.class.name), :title => t('browse.note.report') do %>
         &nbsp;&#9872;
     <% end %>
   <% end %>