X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c3ad6aa2923c03aeeea0b57033b0a9238d262aa2..cb7b79a58f0337ab28b41ed5105215de302d3f73:/app/views/issues/_reports.html.erb?ds=sidebyside diff --git a/app/views/issues/_reports.html.erb b/app/views/issues/_reports.html.erb index 97d1ec793..143f2d887 100644 --- a/app/views/issues/_reports.html.erb +++ b/app/views/issues/_reports.html.erb @@ -1,16 +1,14 @@ <% reports.each do |report| %> - <% details = report.details.split("--||--") %> -
-
- <%= link_to user_thumbnail(report.user), :controller => :user,:action =>:view, :display_name => report.user.display_name %> +
+
+ <%= link_to user_thumbnail(report.user), user_path(report.user) %>
- Reported as <%= details[1].delete('[').delete(']').downcase %> by <%= link_to report.user.display_name, :controller => :user,:action =>:view, :display_name => report.user.display_name %>
- - On <%= l report.updated_at.to_datetime, :format => :friendly %> - -
- <%= details[0] %> -
+

+ <%= t ".reported_by_html", :category => report.category, + :user => link_to(report.user.display_name, user_path(report.user)), + :updated_at => l(report.updated_at.to_datetime, :format => :friendly) %> +

+

<%= report.details %>


<% end %>