X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a20e28809f5ca1e3f3579faeaf118fff3ecc4994..05b871db995bbefddf7aac3d366e68a4c2f3d557:/app/views/issues/index.html.erb diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 2980f5e01..53927701e 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -18,15 +18,14 @@
- +
- - + @@ -36,8 +35,16 @@ - - + <% end %>
<%= t ".status" %> <%= t ".reports" %> <%= t ".reported_item" %> <%= t ".reported_user" %><%= t ".last_updated_by" %><%= t ".last_updated_at" %><%= t ".last_updated" %>
<%= 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, :controller => :user, :action => :view, :display_name => issue.reported_user.display_name if issue.reported_user %><% if issue.user_updated %> <%= issue.user_updated.display_name %> <% else %> - <% end %><%= l(issue.updated_at.to_datetime, :format => :friendly) %> + <% if issue.user_updated %> + <%= t ".last_updated_time_user_html", :user => link_to(issue.user_updated.display_name, :controller => :user, :action => :view, :display_name => 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 %> +