gitlabhq/gitlabhq

View on GitHub
app/views/projects/notes/index.js.haml

Summary

Maintainability
Test Coverage
- unless @notes.blank?
  var notesHtml = "#{escape_javascript(render 'projects/notes/notes')}";
  - new_note_ids = @notes.map(&:id)
  NoteList.setContent(#{new_note_ids}, notesHtml);