X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/72e33046c80bddc0ca9b1336786dcb4b349137f7..bc27347b8f8333b65962b8c00f76dc99a1095a8a:/app/views/browse/note.html.erb?ds=sidebyside diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 5c42fddd6..8e277d25f 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -1,83 +1,63 @@ -
- - <% if @note.status == "closed" %> - <%= image_tag("closed_note_marker.png", :alt => 'closed') %> - <%= t 'browse.note.closed_title', :note_name => @note.id %> - <% else %> - <%= image_tag("open_note_marker.png", :alt => 'open') %> - <%= t 'browse.note.open_title', :note_name => @note.id %> - <% end %> -- |
- - <%= render :partial => "navigation" %> - | -||||||||||||||||||
-
+
- <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>+ + <%= t "browse.note.opened" %>: + <%= note_event(@note.created_at, @note.author) %> by + <% if @note.author.nil? %> + <%= t "browse.note.anonymous" %> + <% else %> + <%= note_author(@note.author) %> + <% end %> + <% if @note.status == "closed" %> + + <%= t "browse.note.closed" %>: + <%= note_event(@note.closed_at, @note.author) %> by + <%= @note.comments.last.author %> + <% end %> + ++<% if @note.comments.find { |comment| comment.author.nil? } -%> +
+
+<% end -%>
- <% if @note.comments.length > 1 %>
- <%= t "javascripts.notes.show.anonymous_warning" %> +
- |
+
<%= t "browse.note.comments" %>
++ <% @note.comments[1..-1].each do |comment| %> +-
+ <%= comment.body.to_html %>
+ <%= note_event(comment.created_at, comment.author) %>
+
+ <% end %>
+
+