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

18 lines
489 B
Text
Raw Normal View History

2011-11-04 16:46:51 +01:00
- unless @notes.blank?
- if loading_more_notes?
2011-11-04 16:46:51 +01:00
:plain
NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}");
2011-11-04 16:46:51 +01:00
- elsif loading_new_notes?
2011-11-04 16:46:51 +01:00
:plain
NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes_list')}");
2011-11-04 16:46:51 +01:00
2011-11-05 12:59:43 +01:00
- else
:plain
NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}");
2012-02-12 22:52:27 +01:00
- else
- if loading_more_notes?
2012-02-12 22:52:27 +01:00
:plain
NoteList.finishedLoadingMore();