Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-09-29 20:15:03 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-10-17 10:25:21 +0300
commit6bab69aa0c0a6383a7eda5d74504939891f30f41 (patch)
tree028f7159f70a24546a77230a985a73b0aa9dd4b6 /app/helpers/notifications_helper.rb
parent8dd580f4022fa01521264cfbd6eaeb92d39430b5 (diff)
Show it as successful pipeline, rather than success pipeline
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342#note_16132150
Diffstat (limited to 'app/helpers/notifications_helper.rb')
-rw-r--r--app/helpers/notifications_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb
index 7e8369d0a05..03cc8f2b6bd 100644
--- a/app/helpers/notifications_helper.rb
+++ b/app/helpers/notifications_helper.rb
@@ -74,4 +74,13 @@ module NotificationsHelper
return unless notification_setting.source_type
hidden_field_tag "#{notification_setting.source_type.downcase}_id", notification_setting.source_id
end
+
+ def notification_event_name(event)
+ case event
+ when :success_pipeline
+ 'Successful pipeline'
+ else
+ event.to_s.humanize
+ end
+ end
end