Merge pull request #231 from CedricGatay/feature/commit_author_mail_for_note

Alert only commit author on note
This commit is contained in:
Dmitriy Zaporozhets 2011-12-25 03:41:47 -08:00
commit 53ce00f74a
5 changed files with 13 additions and 2 deletions

View file

@ -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"