X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1673851b50e2932f04891c8140af58464c2866c4..f7367baa6b6091df3eabbe8b7a4b99e3fa314743:/app/views/browse/note.html.erb?ds=inline diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index a377ada6a..3373b0b6d 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -1,31 +1,39 @@ -<% set_title("#{t('browse.note.title')} | #{@note.id}") %> - -
<%= t "javascripts.notes.show.anonymous_warning" %>
+ <% if @note_comments.find { |comment| comment.author.nil? } -%> +<%= t "javascripts.notes.show.anonymous_warning" %>
<% end -%> - <% if @note.comments.length > 1 %> + <% if @note_comments.length > 1 %>
- <% @note.comments[1..-1].each do |comment| %> +
+ <% if current_user -%> + + <% end -%> <% else %> -+ <% @note_comments.drop(1).each do |comment| %>-
- <%= note_event(comment.event, comment.created_at, comment.author) %>
+ <%= note_event(comment.event, comment.created_at, comment.author) %>
<%= comment.body.to_html %>
<% end %>
@@ -34,21 +42,50 @@
<% end %>
<% if @note.status == "open" %>
-