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

This commit is contained in:
Riyad Preukschas 2012-09-14 05:19:38 +02:00
parent 4fc66ead4f
commit dd1b3177c9
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
- @notes.each do |note| - @notes.each do |note|
- next unless note.author - next unless note.author
= render "notes/note", note: note = render "note", note: note

View File

@ -1,15 +1,15 @@
- unless @notes.blank? - unless @notes.blank?
- if loading_more_notes? - if loading_more_notes?
:plain :plain
NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}"); NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
- elsif loading_new_notes? - elsif loading_new_notes?
:plain :plain
NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes_list')}"); NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes')}");
- else - else
:plain :plain
NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}"); NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
- else - else
- if loading_more_notes? - if loading_more_notes?