diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-25 15:56:42 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-25 16:40:48 +0100 |
commit | f0b78a852933a54173bb9b4ceddba44b52dc3cfa (patch) | |
tree | 412ab2eec480f41348ded30f74b4151e63d235e1 /app/models/project_services | |
parent | 969de4c15a876ab9096f163ef6182571ca199492 (diff) | |
download | gitlab-ce-f0b78a852933a54173bb9b4ceddba44b52dc3cfa.tar.gz |
Clarify EmailsOnPushService options.
Diffstat (limited to 'app/models/project_services')
-rw-r--r-- | app/models/project_services/emails_on_push_service.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/models/project_services/emails_on_push_service.rb b/app/models/project_services/emails_on_push_service.rb index e5d6c29c645..ec0c55bfd95 100644 --- a/app/models/project_services/emails_on_push_service.rb +++ b/app/models/project_services/emails_on_push_service.rb @@ -44,9 +44,12 @@ class EmailsOnPushService < Service end def fields + domains = Notify.allowed_email_domains.map { |domain| "user@#{domain}" }.join(", ") [ - { type: 'checkbox', name: 'send_from_committer_email', title: "Send from committer email if domain matches" }, - { type: 'checkbox', name: 'disable_diffs', title: "Disable code diffs" }, + { type: 'checkbox', name: 'send_from_committer_email', title: "Send from committer", + help: "Send notifications from the committer's email address if the domain is part of the domain GitLab is running on (e.g. #{domains})." }, + { type: 'checkbox', name: 'disable_diffs', title: "Disable code diffs", + help: "Don't include possibly sensitive code diffs in notification body." }, { type: 'textarea', name: 'recipients', placeholder: 'Emails separated by whitespace' }, ] end |