X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c20b31b54ed3043e9ebf3964aa7c08f5ddc73a95..c798962cda8ede6425ce56c59533bc476180a830:/app/views/browse/note.html.erb diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 5c42fddd6..c91005b60 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -1,83 +1,65 @@ -
- - <% 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 %>
+
+