From 20ed4df47211d7a516c97c485e4c6854e734996a Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 22 Jul 2020 14:18:01 +0200 Subject: [PATCH] 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. --- app/views/browse/note.html.erb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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? } -%> -- 2.39.5