From dd1b3177c999560818e8bbfb549630234f6ec9f0 Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Fri, 14 Sep 2012 05:19:38 +0200 Subject: [PATCH] Renamed 'notes/notes_list' partial to 'notes/notes' --- app/views/notes/_notes.html.haml | 4 ++++ app/views/notes/_notes_list.html.haml | 4 ---- app/views/notes/index.js.haml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 app/views/notes/_notes.html.haml delete mode 100644 app/views/notes/_notes_list.html.haml diff --git a/app/views/notes/_notes.html.haml b/app/views/notes/_notes.html.haml new file mode 100644 index 0000000..adb5dfc --- /dev/null +++ b/app/views/notes/_notes.html.haml @@ -0,0 +1,4 @@ +- @notes.each do |note| + - next unless note.author + = render "note", note: note + diff --git a/app/views/notes/_notes_list.html.haml b/app/views/notes/_notes_list.html.haml deleted file mode 100644 index e2c4bed..0000000 --- a/app/views/notes/_notes_list.html.haml +++ /dev/null @@ -1,4 +0,0 @@ -- @notes.each do |note| - - next unless note.author - = render "notes/note", note: note - diff --git a/app/views/notes/index.js.haml b/app/views/notes/index.js.haml index 8c73547..3d6859e 100644 --- a/app/views/notes/index.js.haml +++ b/app/views/notes/index.js.haml @@ -1,15 +1,15 @@ - unless @notes.blank? - if loading_more_notes? :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? :plain - NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes_list')}"); + NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes')}"); - else :plain - NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}"); + NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}"); - else - if loading_more_notes? -- libgit2 0.21.2