]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/reports/new.html.erb
Refactor reportable_url to just return the url
[rails.git] / app / views / reports / new.html.erb
index 7acf91d9c40354b858753d1f83280dda6a7eaca5..f3bda8880222cc684bf82355cee11501d1755c8f 100644 (file)
@@ -1,5 +1,5 @@
 <% content_for :heading do %>
-  <h1><%= t ".title_html", :link => reportable_url(@report.issue.reportable) %></h1>
+  <h1><%= t ".title_html", :link => link_to(reportable_title(@report.issue.reportable), reportable_url(@report.issue.reportable)) %></h1>
 <% end %>
 
 <div class="disclaimer">