diff options
Diffstat (limited to 'app/views/notes/_form.html.haml')
-rw-r--r-- | app/views/notes/_form.html.haml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml index c2aa04e2ef6..23c9553ebb1 100644 --- a/app/views/notes/_form.html.haml +++ b/app/views/notes/_form.html.haml @@ -23,9 +23,13 @@ %br = f.file_field :attachment - = check_box_tag :notify, 1, true + = check_box_tag :notify, 1, @note.noteable_type != "Commit" = label_tag :notify, "Notify project team about your note" + -if @note.noteable_type == "Commit" + = check_box_tag :notify_author, 1 , @note.noteable_type == "Commit" + = label_tag :notify_author, "Notify commit author about your note" + .clear %br = f.submit 'Add note', :class => "grey-button", :id => "submit_note" |