Commit 5f7db3e94bd821ef561d44c85e611e843d64dc2c

Authored by Dmitriy Zaporozhets
1 parent d4ec23b8

Fix file upload for edit note. Better style for discussion form

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/stylesheets/sections/notes.scss
... ... @@ -257,7 +257,8 @@ ul.notes {
257 257 .file,
258 258 .discussion {
259 259 .new_note {
260   - margin: 8px 5px 8px 0;
  260 + margin: 0;
  261 + border: none;
261 262 }
262 263 }
263 264 .new_note {
... ...
app/views/projects/notes/_note.html.haml
... ... @@ -34,7 +34,7 @@
34 34 = markdown(note.note)
35 35  
36 36 .note-edit-form
37   - = form_for note, url: project_note_path(@project, note), method: :put, remote: true do |f|
  37 + = form_for note, url: project_note_path(@project, note), method: :put, remote: true, authenticity_token: true do |f|
38 38 = f.text_area :note, class: 'note_text js-note-text js-gfm-input turn-on'
39 39  
40 40 .form-actions
... ...