From 1752c6dc8b755bc2fbff2757e8549521b0823048 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 19 Mar 2013 09:38:33 +0200 Subject: [PATCH] Uncheck notify team checkbox by default --- app/assets/stylesheets/sections/notes.scss | 5 ++++- app/views/notes/_form.html.haml | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/sections/notes.scss b/app/assets/stylesheets/sections/notes.scss index 4a6d114..ae2e1b2 100644 --- a/app/assets/stylesheets/sections/notes.scss +++ b/app/assets/stylesheets/sections/notes.scss @@ -284,6 +284,9 @@ ul.notes { margin-top: 8px; margin-left: 15px; @extend .pull-left; - width: 35%; + } + + .js-notify-commit-author { + float: left; } } diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml index eadf5bc..c2bdeaf 100644 --- a/app/views/notes/_form.html.haml +++ b/app/views/notes/_form.html.haml @@ -28,12 +28,12 @@ .note-form-option = label_tag :notify do - = check_box_tag :notify, 1, !@note.for_commit? + = check_box_tag :notify, 1, false %span.light Notify team via email .js-notify-commit-author = label_tag :notify_author do - = check_box_tag :notify_author, 1 , @note.for_commit? + = check_box_tag :notify_author, 1 , false %span.light Notify commit author .note-form-option %a.choose-btn.btn.btn-small.js-choose-note-attachment-button -- libgit2 0.21.2