[openstreetmap/openstreetmap-website] Traces: Migrate list to bootstrap (#3036)
Tom Hughes
notifications at github.com
Mon Jan 4 22:15:27 UTC 2021
@tomhughes commented on this pull request.
>
- <% 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>
+ <p class="mb-0 text-muted" title="<%= trace.timestamp %>">
+ <%= time_ago_in_words(trace.timestamp, :scope => :'datetime.distance_in_words_ago') %>
+ <%= t ".by" %> <%= link_to trace.user.display_name, user_path(trace.user) %>
+ <% if trace.tags.present? %>
+ <%= t ".in" %>
+ <%= safe_join(trace.tags.collect { |tag| link_to_tag tag.tag }, ", ") %>
+ <% end %>
Yes that's a separate issue and should be addressed (if there is indeed a problem) in a separate PR.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3036#discussion_r551601284
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210104/93cd8b52/attachment-0001.htm>
More information about the rails-dev
mailing list