diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-26 15:06:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-26 15:06:18 +0300 |
commit | 6a4ffad42050949fcf08e78147575734ae99627e (patch) | |
tree | 723bb2480948ba4ec29ca9ac10f8728dc2a831b6 /app/helpers/services_helper.rb | |
parent | 23d237110e6a646dec08e1f5b4696d2d9c51cfef (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/services_helper.rb')
-rw-r--r-- | app/helpers/services_helper.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/helpers/services_helper.rb b/app/helpers/services_helper.rb index 19a27ba3499..caef6dba212 100644 --- a/app/helpers/services_helper.rb +++ b/app/helpers/services_helper.rb @@ -31,6 +31,26 @@ module ServicesHelper "#{event}_events" end + def service_event_action_field_name(action) + "#{action}_on_event_enabled" + end + + def event_action_title(action) + case action + when "comment" + s_("ProjectService|Comment") + else + action.humanize + end + end + + def event_action_description(action) + case action + when "comment" + s_("ProjectService|Comment will be posted on each event") + end + end + def service_save_button(service) button_tag(class: 'btn btn-success', type: 'submit', disabled: service.deprecated?, data: { qa_selector: 'save_changes_button' }) do icon('spinner spin', class: 'hidden js-btn-spinner') + |