diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-07-19 14:31:47 +0300 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-07-21 11:22:11 +0300 |
commit | 8877f2e8c16ebb0c1251124659117c7d2c209399 (patch) | |
tree | b6e321c6d2c21d8bd1b08b1f48a04d676df422a8 /lib/gitlab/badge | |
parent | 2086483b24e719ec8d82b3e7a52476626952885a (diff) |
Reword success to passing for pipeline badges
Diffstat (limited to 'lib/gitlab/badge')
-rw-r--r-- | lib/gitlab/badge/pipeline/template.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/badge/pipeline/template.rb b/lib/gitlab/badge/pipeline/template.rb index 9618a3cf7eb..e09db32262d 100644 --- a/lib/gitlab/badge/pipeline/template.rb +++ b/lib/gitlab/badge/pipeline/template.rb @@ -7,6 +7,7 @@ module Gitlab # Template object will be passed to badge.svg.erb template. # class Template < Badge::Template + STATUS_RENAME = { 'success' => 'passed' }.freeze STATUS_COLOR = { success: '#4c1', failed: '#e05d44', @@ -27,7 +28,7 @@ module Gitlab end def value_text - @status.to_s + STATUS_RENAME[@status.to_s] || @status.to_s end def key_width |