summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-08-23 08:45:18 -0500
committerAnnabel Dunstone <annabel.dunstone@gmail.com>2016-08-23 08:45:18 -0500
commitcc94714c05a5088db7e30b9582a187e5ee52068b (patch)
treec3cbe3e60e3dcc45db05069ae1493a89cbe72ec3
parentf633f7db66d4ff42abbe764c21f9da4e49045f91 (diff)
downloadgitlab-ce-21070-graph-tooltip.tar.gz
Add body as data-container on pipeline graph tooltip21070-graph-tooltip
-rw-r--r--app/helpers/ci_status_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/ci_status_helper.rb b/app/helpers/ci_status_helper.rb
index bb285a17baf..0327b476d18 100644
--- a/app/helpers/ci_status_helper.rb
+++ b/app/helpers/ci_status_helper.rb
@@ -66,10 +66,10 @@ module CiStatusHelper
Ci::Runner.shared.blank?
end
- def render_status_with_link(type, status, path = nil, tooltip_placement: 'auto left', cssclass: '')
+ def render_status_with_link(type, status, path = nil, tooltip_placement: 'auto left', cssclass: '', container: 'body')
klass = "ci-status-link ci-status-icon-#{status.dasherize} #{cssclass}"
title = "#{type.titleize}: #{ci_label_for_status(status)}"
- data = { toggle: 'tooltip', placement: tooltip_placement }
+ data = { toggle: 'tooltip', placement: tooltip_placement, container: container }
if path
link_to ci_icon_for_status(status), path,