Rename 'notes/show' partial to 'notes/note'

This commit is contained in:
Riyad Preukschas 2012-09-14 05:13:26 +02:00
parent 29c71f2fb9
commit 4fc66ead4f
4 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
$('.note-form-holder #preview-link').text('Preview'); $('.note-form-holder #preview-link').text('Preview');
$('.note-form-holder #preview-note').hide(); $('.note-form-holder #preview-note').hide();
$('.note-form-holder').show(); $('.note-form-holder').show();
NoteList.appendNewNote(#{note.id}, "#{escape_javascript(render "notes/show", note: note)}"); NoteList.appendNewNote(#{note.id}, "#{escape_javascript(render "notes/note", note: note)}");
- else - else
:plain :plain

View file

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

View file

@ -1,5 +1,5 @@
%tr.line_notes_row %tr.line_notes_row
%td{colspan: 3} %td{colspan: 3}
%ul %ul
= render "notes/show", note: note = render "notes/note", note: note