Refactor discussion reply
This commit is contained in:
parent
1319373d58
commit
494ae87840
27 changed files with 229 additions and 197 deletions
|
@ -1,13 +1,11 @@
|
|||
%ul#notes-list.notes
|
||||
%ul#new-notes-list.notes
|
||||
.notes-status
|
||||
|
||||
- if can? current_user, :write_note, @project
|
||||
.note-forms.js-note-forms
|
||||
= render "notes/common_form"
|
||||
= render "notes/diff_note_form"
|
||||
= render "notes/discussion_note_form"
|
||||
|
||||
:javascript
|
||||
$(function(){
|
||||
NoteList.init("#{tid}", "#{tt}", "#{project_notes_path(@project)}");
|
||||
NoteList.init("#{@target_id}", "#{@target_type}", "#{project_notes_path(@project)}");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue