summaryrefslogtreecommitdiff
path: root/app/views/ci/status
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-12-19 23:44:34 +0000
committerFilipa Lacerda <filipa@gitlab.com>2016-12-19 23:44:34 +0000
commit9edef45ae169e5882dab4950a8143acf7623a06d (patch)
tree93f71129ed962ccd8b9ed22e5e471ffdfa615831 /app/views/ci/status
parent1b449ba0735531df406b4fbe6e021eae2f8bf770 (diff)
downloadgitlab-ce-9edef45ae169e5882dab4950a8143acf7623a06d.tar.gz
Resolve conflict
Fix tooltips in dropdown
Diffstat (limited to 'app/views/ci/status')
-rw-r--r--app/views/ci/status/_graph_badge.html.haml12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/ci/status/_graph_badge.html.haml b/app/views/ci/status/_graph_badge.html.haml
index 52b4d77d074..dd2f649de9a 100644
--- a/app/views/ci/status/_graph_badge.html.haml
+++ b/app/views/ci/status/_graph_badge.html.haml
@@ -3,18 +3,18 @@
- subject = local_assigns.fetch(:subject)
- status = subject.detailed_status(current_user)
- klass = "ci-status-icon ci-status-icon-#{status.group}"
+- tooltip = "#{subject.name} - #{status.label}"
- if status.has_details?
- = link_to status.details_path, class: 'build-content' do
+ = link_to status.details_path, class: 'build-content has-tooltip', data: { toggle: 'tooltip', title: tooltip } do
%span{ class: klass }= custom_icon(status.icon)
- .ci-status-text{ 'data-toggle' => 'tooltip', 'data-title' => "#{subject.name} - #{status.label}" }= subject.name
+ .ci-status-text= subject.name
- else
- .build-content
+ .build-content.has-tooltip{ data: { toggle: 'tooltip', title: tooltip } }
%span{ class: klass }= custom_icon(status.icon)
- .ci-status-text{ 'data-toggle' => 'tooltip', 'data-title' => "#{subject.name} - #{status.label}" }= subject.name
+ .ci-status-text= subject.name
- if status.has_action?
- = link_to status.action_path, method: status.action_method,
- title: status.action_title, class: 'ci-action-icon-container' do
+ = link_to status.action_path, class: 'ci-action-icon-container has-tooltip', method: status.action_method, data: { toggle: 'tooltip', title: status.action_title } do
%i.ci-action-icon-wrapper
= icon(status.action_icon, class: status.action_class)