<%= note_event("opened", @note.created_at, @note.author) %>
<% if @note.status == "closed" %>
<br />
- <%= note_event(@note.status, @note.closed_at, @note_comments.last.author) %>
+ <%= note_event(@note.status, @note.closed_at, @note.all_comments.last.author) %>
<% end %>
</div>