summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Luís <aluis@gitlab.com>2018-03-16 18:01:32 +0000
committerMayra Cabrera <mcabrera@gitlab.com>2018-03-22 15:18:47 -0600
commitee30b954c7918f09472f1e11c12ce7e5f6ca28fd (patch)
tree78d587da7792d138df7f83c682fc9548611268c7
parenta4cb714640d2465731d4865a8baf10ef1c1ab83f (diff)
downloadgitlab-ce-ee30b954c7918f09472f1e11c12ce7e5f6ca28fd.tar.gz
Allow html in tooltip of ci status badge
-rw-r--r--app/views/ci/status/_badge.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/ci/status/_badge.html.haml b/app/views/ci/status/_badge.html.haml
index 35a3563dff1..5114387984b 100644
--- a/app/views/ci/status/_badge.html.haml
+++ b/app/views/ci/status/_badge.html.haml
@@ -4,10 +4,10 @@
- css_classes = "ci-status ci-#{status.group} #{'has-tooltip' if title.present?}"
- if link && status.has_details?
- = link_to status.details_path, class: css_classes, title: title do
+ = link_to status.details_path, class: css_classes, title: title, data: { html: title.present? } do
= sprite_icon(status.icon)
= status.text
- else
- %span{ class: css_classes, title: title }
+ %span{ class: css_classes, title: title, data: { html: title.present? } }
= sprite_icon(status.icon)
= status.text