From 5f7db3e94bd821ef561d44c85e611e843d64dc2c Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 26 Dec 2013 09:44:18 +0200 Subject: [PATCH] Fix file upload for edit note. Better style for discussion form --- app/assets/stylesheets/sections/notes.scss | 3 ++- app/views/projects/notes/_note.html.haml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/sections/notes.scss b/app/assets/stylesheets/sections/notes.scss index 09c684d..724b8d4 100644 --- a/app/assets/stylesheets/sections/notes.scss +++ b/app/assets/stylesheets/sections/notes.scss @@ -257,7 +257,8 @@ ul.notes { .file, .discussion { .new_note { - margin: 8px 5px 8px 0; + margin: 0; + border: none; } } .new_note { diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml index e2de98b..1c3bd61 100644 --- a/app/views/projects/notes/_note.html.haml +++ b/app/views/projects/notes/_note.html.haml @@ -34,7 +34,7 @@ = markdown(note.note) .note-edit-form - = form_for note, url: project_note_path(@project, note), method: :put, remote: true do |f| + = form_for note, url: project_note_path(@project, note), method: :put, remote: true, authenticity_token: true do |f| = f.text_area :note, class: 'note_text js-note-text js-gfm-input turn-on' .form-actions -- libgit2 0.21.2