Commit 4fc66ead authored by Riyad Preukschas's avatar Riyad Preukschas

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

parent 29c71f2f
...@@ -5,7 +5,7 @@ ...@@ -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
......
- @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
%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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment