Rename 'notes/show' partial to 'notes/note'
This commit is contained in:
parent
29c71f2fb9
commit
4fc66ead4f
4 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue