summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorRydkin Maxim <maks.rydkin@gmail.com>2017-03-19 21:04:45 +0300
committerRydkin Maxim <maks.rydkin@gmail.com>2017-04-04 21:11:24 +0300
commit2d7bc6959606bc9af5144463433507685f81a9a0 (patch)
tree67226d852da376ed2d8c6ad7c1f37179c153a890 /app/helpers
parentaa4a9b9b1a28d487f231d438c9410529eb69ce4f (diff)
downloadgitlab-ce-2d7bc6959606bc9af5144463433507685f81a9a0.tar.gz
adds tooltips into several places
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/ci_status_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/ci_status_helper.rb b/app/helpers/ci_status_helper.rb
index 2de9e0de310..88e18500430 100644
--- a/app/helpers/ci_status_helper.rb
+++ b/app/helpers/ci_status_helper.rb
@@ -121,4 +121,8 @@ module CiStatusHelper
status.respond_to?(:label) &&
status.respond_to?(:icon)
end
+
+ def status_title(pipeline)
+ "This pipeline is redundant as a newer pipeline exists (canceled by ##{pipeline.auto_canceled_by_id} pipeline)" if pipeline.auto_canceled_by_id? && pipeline.canceled?
+ end
end