gitlabhq/app/views/notes/index.js.haml

18 lines
489 B
Plaintext
Raw Normal View History

2012-09-14 05:05:37 +02:00
- unless @notes.blank?
- if loading_more_notes?
:plain
NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}");
- elsif loading_new_notes?
:plain
NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes_list')}");
- else
:plain
NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}");
- else
- if loading_more_notes?
:plain
NoteList.finishedLoadingMore();