OSDN Git Service

Renamed 'notes/notes_list' partial to 'notes/notes'
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>
Fri, 14 Sep 2012 03:19:38 +0000 (05:19 +0200)
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>
Fri, 14 Sep 2012 19:41:57 +0000 (21:41 +0200)
app/views/notes/_notes.html.haml [moved from app/views/notes/_notes_list.html.haml with 59% similarity]
app/views/notes/index.js.haml

similarity index 59%
rename from app/views/notes/_notes_list.html.haml
rename to app/views/notes/_notes.html.haml
index e2c4bed..adb5dfc 100644 (file)
@@ -1,4 +1,4 @@
 - @notes.each do |note|
   - next unless note.author
-  = render "notes/note", note: note
+  = render "note", note: note
 
index 8c73547..3d6859e 100644 (file)
@@ -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?