]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/issues/index.html.erb
Refactor reportable_url to just return the url
[rails.git] / app / views / issues / index.html.erb
index 653cd462e7edb5b117a1c416ffa9247b503b1ccb..4b7a2de507ee7f47fef10cc68e571f0023ce6bce 100644 (file)
@@ -37,9 +37,9 @@
         <td style="text-align:center;"><%= issue.reports_count %></td>
         <td><%= l(issue.updated_at.to_datetime, :format => :friendly) %></td>
         <td><% if issue.user_updated %> <%= issue.user_updated.display_name %> <% else %> - <% end %></td>
-        <td><%= reports_url(issue) %></td>
+        <td><%= link_to reportable_title(issue.reportable), issue %></td>
         <td><%= link_to issue.reported_user.display_name , :controller => :user, :action => :view, :display_name => issue.reported_user.display_name %></td>
-        <td><%= instance_url(issue.reportable) %></td>
+        <td><%= link_to t(".show_instance"), reportable_url(issue.reportable) %></td>
       </tr>
     <% end %>
   </tbody>