summaryrefslogtreecommitdiff
path: root/app/views/ci/status
diff options
context:
space:
mode:
authorMitchell Hentges <mitch9654@gmail.com>2016-12-19 01:34:45 -0800
committerMitchell Hentges <mitch9654@gmail.com>2016-12-19 10:13:25 -0800
commit66ff2dede173c9918c72d381468f2d9f5b39ab86 (patch)
tree7f4bf0a7161dc5a361810da25854a1b5214ba717 /app/views/ci/status
parent8c8c4f8c5a5f5845b9ebca415aaa29278cb904c7 (diff)
downloadgitlab-ce-66ff2dede173c9918c72d381468f2d9f5b39ab86.tar.gz
Make CI badge hitboxes better match container
Diffstat (limited to 'app/views/ci/status')
-rw-r--r--app/views/ci/status/_graph_badge.html.haml9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/ci/status/_graph_badge.html.haml b/app/views/ci/status/_graph_badge.html.haml
index 9f3a9c0c6b2..52b4d77d074 100644
--- a/app/views/ci/status/_graph_badge.html.haml
+++ b/app/views/ci/status/_graph_badge.html.haml
@@ -5,12 +5,13 @@
- klass = "ci-status-icon ci-status-icon-#{status.group}"
- if status.has_details?
- = link_to status.details_path, data: { toggle: 'tooltip', title: "#{subject.name} - #{status.label}" } do
+ = link_to status.details_path, class: 'build-content' do
%span{ class: klass }= custom_icon(status.icon)
- .ci-status-text= subject.name
+ .ci-status-text{ 'data-toggle' => 'tooltip', 'data-title' => "#{subject.name} - #{status.label}" }= subject.name
- else
- %span{ class: klass }= custom_icon(status.icon)
- .ci-status-text= subject.name
+ .build-content
+ %span{ class: klass }= custom_icon(status.icon)
+ .ci-status-text{ 'data-toggle' => 'tooltip', 'data-title' => "#{subject.name} - #{status.label}" }= subject.name
- if status.has_action?
= link_to status.action_path, method: status.action_method,