gitlab-org--gitlab-foss/app/views/notes/index.js.haml

18 lines
494 B
Text
Raw Normal View History

2012-09-13 23:05:37 -04:00
- unless @notes.blank?
- if loading_more_notes?
:plain
NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
2012-09-13 23:05:37 -04:00
- elsif loading_new_notes?
:plain
NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes')}");
2012-09-13 23:05:37 -04:00
- else
:plain
2012-09-14 11:01:34 -04:00
NoteList.setContent(#{@notes.first.id}, #{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
2012-09-13 23:05:37 -04:00
- else
- if loading_more_notes?
:plain
NoteList.finishedLoadingMore();