diff options
author | André Luís <aluis@gitlab.com> | 2018-03-16 18:01:32 +0000 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-03-22 15:18:47 -0600 |
commit | ee30b954c7918f09472f1e11c12ce7e5f6ca28fd (patch) | |
tree | 78d587da7792d138df7f83c682fc9548611268c7 /app/views/ci/status/_badge.html.haml | |
parent | a4cb714640d2465731d4865a8baf10ef1c1ab83f (diff) | |
download | gitlab-ce-ee30b954c7918f09472f1e11c12ce7e5f6ca28fd.tar.gz |
Allow html in tooltip of ci status badge
Diffstat (limited to 'app/views/ci/status/_badge.html.haml')
-rw-r--r-- | app/views/ci/status/_badge.html.haml | 4 |
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 |