From: Andy Allan Date: Wed, 22 Jul 2020 12:18:01 +0000 (+0200) Subject: Add a browse map link to notes X-Git-Tag: live~2176^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/20ed4df47211d7a516c97c485e4c6854e734996a?hp=499a60c330faabcb8bf185307621165d32cc2c5b Add a browse map link to notes This matches the one for nodes. Fixes #1355. Replacement for #1773. An unstyled list works better for the details section, particularly when all three are shown. --- diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 74d1223c7..c72730a76 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -12,10 +12,16 @@
-

<%= note_event("opened", @note.created_at, @note.author) %>

- <% if @note.status == "closed" %> -

<%= note_event(@note.status, @note.closed_at, @note.all_comments.last.author) %>

- <% end %> +
<% if @note_comments.find { |comment| comment.author.nil? } -%>