<% end %>
</td>
<td>
- <span class="mr-2">
- <%= link_to trace.name, :controller => "traces", :action => "show", :display_name => trace.user.display_name, :id => trace.id %>
- </span>
+ <ul class="list-inline mb-0">
+ <li class="list-inline-item">
+ <%= link_to trace.name, :controller => "traces", :action => "show", :display_name => trace.user.display_name, :id => trace.id %>
+ </li>
- <% if trace.inserted? %>
- <span class="mr-2">
- <%= t ".count_points", :count => trace.size %>
- </span>
- <% end %>
-
- <% badge_class = case trace.visibility
- when "public", "identifiable" then "success"
- else "danger"
- end %>
- <span class="badge badge-<%= badge_class %> text-white"><%= t(".#{trace.visibility}") %></span>
+ <% if trace.inserted? %>
+ <li class="list-inline-item">
+ <%= t ".count_points", :count => trace.size %>
+ </li>
+ <% end %>
- <br />
- <span class="text-muted">
+ <li class="list-inline-item">
+ <% badge_class = case trace.visibility
+ when "public", "identifiable" then "success"
+ else "danger"
+ end %>
+ <span class="badge badge-<%= badge_class %> text-white"><%= t(".#{trace.visibility}") %></span>
+ </li>
+ </ul>
+ <p class="text-muted mb-0">
<span title="<%= trace.timestamp %>">
<%= time_ago_in_words(trace.timestamp, :scope => :'datetime.distance_in_words_ago') %>
</span>
<%= t ".in" %>
<%= safe_join(trace.tags.collect { |tag| link_to_tag tag.tag }, ", ") %>
<% end %>
- </span>
- <br />
- <p class="font-italic my-1">
+ </p>
+ <p class="font-italic mb-0">
<%= trace.description %>
</p>
</td>
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