Commit dd1b3177c999560818e8bbfb549630234f6ec9f0

Authored by Riyad Preukschas
1 parent 4fc66ead

Renamed 'notes/notes_list' partial to 'notes/notes'

app/views/notes/_notes.html.haml 0 → 100644
... ... @@ -0,0 +1,4 @@
  1 +- @notes.each do |note|
  2 + - next unless note.author
  3 + = render "note", note: note
  4 +
... ...
app/views/notes/_notes_list.html.haml
... ... @@ -1,4 +0,0 @@
1   -- @notes.each do |note|
2   - - next unless note.author
3   - = render "notes/note", note: note
4   -
app/views/notes/index.js.haml
1 1 - unless @notes.blank?
2 2 - if loading_more_notes?
3 3 :plain
4   - NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}");
  4 + NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
5 5  
6 6 - elsif loading_new_notes?
7 7 :plain
8   - NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes_list')}");
  8 + NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes')}");
9 9  
10 10 - else
11 11 :plain
12   - NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}");
  12 + NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
13 13  
14 14 - else
15 15 - if loading_more_notes?
... ...