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