X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e44f856b53fcba5b44af37126579a034ef654676..aaaeb211dea4711fd6bff4d79c1339e82a43ebcd:/app/views/issues/index.html.erb diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 2980f5e01..6cb194393 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -25,8 +25,7 @@ <%= t ".reports" %> <%= t ".reported_item" %> <%= t ".reported_user" %> - <%= t ".last_updated_by" %> - <%= t ".last_updated_at" %> + <%= t ".last_updated" %> @@ -36,8 +35,16 @@ <%= 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 %> + <% end %>