- <% if @note.status == "closed" %>
- <div class='browse-field'>
- <h4><%= t "browse.note.closed" %></h4>
- <p><%= note_event(@note.closed_at, @note.comments.last.author) %></p>
- </div>
- <% elsif @note.comments.length > 1 %>
- <div class='browse-field'>
- <h4><%= t "browse.note.last_modified" %></h4>
- <p><%= note_event(@note.updated_at, @note.comments.last.author) %></p>
+ <div class="details" data-coordinates="<%= @note.lat %>,<%= @note.lon %>" data-status="<%= @note.status %>">
+ <%= note_event('open', @note.created_at, @note.author) %>
+ <% if @note.status == "closed" %>
+ <br/>
+ <%= note_event(@note.status, @note.closed_at, @note_comments.last.author) %>
+ <% end %>
+ </div>
+
+ <% if @note_comments.find { |comment| comment.author.nil? } -%>
+ <p class='warning'><%= t "javascripts.notes.show.anonymous_warning" %></p>
+ <% end -%>
+
+ <% if @note_comments.length > 1 %>
+ <div class='note-comments'>
+ <ul>
+ <% @note_comments[1..-1].each do |comment| %>
+ <li id="c<%= comment.id %>">
+ <small class='deemphasize'><%= note_event(comment.event, comment.created_at, comment.author) %></small>
+ <%= comment.body.to_html %>
+ </li>
+ <% end %>
+ </ul>