From: Tom Hughes Date: Wed, 17 Mar 2021 19:11:35 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/3140' X-Git-Tag: live~1718 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/978ba726d95aa7f739c19be682259879ef8c2584?hp=8e5deafd854b05086296513b318df1626dc41967 Merge remote-tracking branch 'upstream/pull/3140' --- diff --git a/app/views/traces/_trace.html.erb b/app/views/traces/_trace.html.erb index b7325dc54..7dc20c203 100644 --- a/app/views/traces/_trace.html.erb +++ b/app/views/traces/_trace.html.erb @@ -9,24 +9,26 @@ <% end %> - - <%= link_to trace.name, :controller => "traces", :action => "show", :display_name => trace.user.display_name, :id => trace.id %> - + +

<%= time_ago_in_words(trace.timestamp, :scope => :'datetime.distance_in_words_ago') %> @@ -35,9 +37,8 @@ <%= t ".in" %> <%= safe_join(trace.tags.collect { |tag| link_to_tag tag.tag }, ", ") %> <% end %> - -
-

+

+

<%= trace.description %>

diff --git a/test/controllers/traces_controller_test.rb b/test/controllers/traces_controller_test.rb index 16a4741a0..39a72568f 100644 --- a/test/controllers/traces_controller_test.rb +++ b/test/controllers/traces_controller_test.rb @@ -768,7 +768,7 @@ class TracesControllerTest < ActionDispatch::IntegrationTest assert_select "tr", :count => traces.length do |rows| traces.zip(rows).each do |trace, row| assert_select row, "a", Regexp.new(Regexp.escape(trace.name)) - assert_select row, "span", Regexp.new(Regexp.escape("#{trace.size} points")) if trace.inserted? + assert_select row, "li", Regexp.new(Regexp.escape("#{trace.size} points")) if trace.inserted? assert_select row, "td", Regexp.new(Regexp.escape(trace.description)) assert_select row, "td", Regexp.new(Regexp.escape("by #{trace.user.display_name}")) end