gitlabhq/app/views/notes/index.js.haml
2012-12-03 22:51:56 +01:00

19 lines
523 B
Plaintext

- unless @notes.blank?
- new_note_ids = @notes.map(&:id)
- if loading_more_notes?
:plain
NoteList.appendMoreNotes(#{new_note_ids}, "#{escape_javascript(render 'notes/notes')}");
- elsif loading_new_notes?
:plain
NoteList.replaceNewNotes(#{new_note_ids}, "#{escape_javascript(render 'notes/notes')}");
- else
:plain
NoteList.setContent(#{new_note_ids}, "#{escape_javascript(render 'notes/notes')}");
- else
- if loading_more_notes?
:plain
NoteList.finishedLoadingMore();