]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/issues/show.html.erb
Remove the report_type helper and use the model_name.human to look up translations.
[rails.git] / app / views / issues / show.html.erb
index 3bef038005e9223adb367e357f7cd1e17b1b2597..05ce1b9f1f149c047b0b39048b55b8e6d1c9af51 100644 (file)
@@ -1,6 +1,6 @@
 <% content_for :heading do %>
 <h2><%= t ".title", :status => @issue.status.humanize, :issue_id => @issue.id %></h2>
-<p><%= report_type(@issue.reportable_type) %> : <%= reportable_url(@issue.reportable) %></p>
+<p><%= @issue.reportable.model_name.human %> : <%= reportable_url(@issue.reportable) %></p>
 <p class="deemphasize">
   <small>
     <%= @issue.assigned_role %>