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

17 lines
521 B
Text
Raw Normal View History

2011-11-04 11:46:51 -04:00
- unless @notes.blank?
2011-11-05 07:59:43 -04:00
- if params[:last_id] && params[:first_id]
:plain
NoteList.replace(#{@notes.last.id}, #{@notes.first.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");
- elsif params[:last_id]
2011-11-04 11:46:51 -04:00
:plain
NoteList.prepend(#{@notes.first.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");
2011-11-05 07:59:43 -04:00
- elsif params[:first_id]
2011-11-04 11:46:51 -04:00
:plain
NoteList.append(#{@notes.last.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");
2011-11-05 07:59:43 -04:00
- else
:plain