diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-01 15:29:20 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-01 15:29:20 +0300 |
commit | 4f2cc5951f3d2862a44fe124ef9a879162028e62 (patch) | |
tree | a69c7bf5ce036ea8222d2b17ab14366702290a25 /lib/gitlab/ci/status/build | |
parent | 6baaa8a98e10ff93ba3f481052bb68fdafb6e2c1 (diff) |
Extend action tooltop to show info about abilities
Diffstat (limited to 'lib/gitlab/ci/status/build')
-rw-r--r-- | lib/gitlab/ci/status/build/play.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/ci/status/build/play.rb b/lib/gitlab/ci/status/build/play.rb index 4c893f62925..8130c7d1c90 100644 --- a/lib/gitlab/ci/status/build/play.rb +++ b/lib/gitlab/ci/status/build/play.rb @@ -6,7 +6,11 @@ module Gitlab include Status::Extended def label - 'manual play action' + if has_action? + 'manual play action' + else + 'manual play action (not allowed)' + end end def has_action? |