Unify forms for discussions and main target.
Allows previews and uploads in all forms. Also fixes #1730
This commit is contained in:
parent
fbd345ea20
commit
6fc10fa256
7 changed files with 175 additions and 169 deletions
|
@ -1,10 +1,9 @@
|
|||
%ul#notes-list.notes
|
||||
.notes-status
|
||||
|
||||
.js-main-target-form
|
||||
- if can? current_user, :write_note, @project
|
||||
#note-forms.js-note-forms
|
||||
= render "notes/common_form"
|
||||
= render "notes/discussion_note_form"
|
||||
= render "notes/common_form"
|
||||
|
||||
:javascript
|
||||
$(function(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue