X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/75e178e6b884f3b2199f69e354ece2cae0a1f5fc..e41751fb32a72944e6743456e096d95665431d4d:/app/views/issues/index.html.erb diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 653cd462e..f688037d8 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -18,28 +18,33 @@
- +
- - - - - - - + + + + + <% @issues.each do |issue| %> - - - - - - + + + + <% end %>
<%= t ".status" %><%= t ".number_of_reports" %><%= t ".last_updated_at" %><%= t ".last_updated_by" %><%= t ".link_to_reports" %><%= t ".reported_user" %><%= t ".link_to_reported_instance" %><%= t ".status" %><%= t ".reports" %><%= t ".reported_item" %><%= t ".reported_user" %><%= t ".last_updated" %>
<%= t "issues.states.#{issue.status}" %><%= issue.reports_count %><%= l(issue.updated_at.to_datetime, :format => :friendly) %><% if issue.user_updated %> <%= issue.user_updated.display_name %> <% else %> - <% end %><%= reports_url(issue) %><%= link_to issue.reported_user.display_name , :controller => :user, :action => :view, :display_name => issue.reported_user.display_name %><%= instance_url(issue.reportable) %><%= link_to t(".reports_count", :count => issue.reports_count), issue %><%= link_to reportable_title(issue.reportable), reportable_url(issue.reportable) %><%= link_to issue.reported_user.display_name, user_path(issue.reported_user.display_name) if issue.reported_user %> + <% if issue.user_updated %> + <%= t ".last_updated_time_user_html", :user => link_to(issue.user_updated.display_name, user_path(issue.user_updated.display_name)), + :time => distance_of_time_in_words_to_now(issue.updated_at), + :title => l(issue.updated_at) %> + <% else %> + <%= t ".last_updated_time_html", :time => distance_of_time_in_words_to_now(issue.updated_at), + :title => l(issue.updated_at) %> + <% end %> +