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

18 lines
527 B
Plaintext
Raw Normal View History

2011-11-04 16:46:51 +01:00
- unless @notes.blank?
2012-02-27 18:05:27 +01:00
- if params[:last_id]
2011-11-04 16:46:51 +01:00
:plain
NoteList.replace("#{escape_javascript(render(partial: 'notes/notes_list'))}");
2011-11-04 16:46:51 +01:00
2011-11-05 12:59:43 +01:00
- elsif params[:first_id]
2011-11-04 16:46:51 +01:00
:plain
NoteList.append(#{@notes.last.id}, "#{escape_javascript(render(partial: '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}, #{@notes.first.id}, "#{escape_javascript(render(partial: 'notes/notes_list'))}");
2012-02-12 22:52:27 +01:00
- else
2012-02-12 22:52:27 +01:00
- if params[:first_id]
:plain
NoteList.append(#{params[:first_id]}, "");