summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-01-04 11:48:48 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-01-04 11:48:48 +0000
commita3f6732dcbcb8e648e74963f65edb57619b42550 (patch)
tree4fd724707842b677e828311b2966dbcca9adc963
parent365612ce3602858c51902e735d0daea6e1987ba8 (diff)
downloadgitlab-ce-a3f6732dcbcb8e648e74963f65edb57619b42550.tar.gz
Simplify HTML of mini pipeline graph and dropdown
-rw-r--r--app/views/projects/ci/pipelines/_pipeline.html.haml23
-rw-r--r--app/views/projects/pipelines/_stage.html.haml7
2 files changed, 13 insertions, 17 deletions
diff --git a/app/views/projects/ci/pipelines/_pipeline.html.haml b/app/views/projects/ci/pipelines/_pipeline.html.haml
index e67492a36d1..73d3549571e 100644
--- a/app/views/projects/ci/pipelines/_pipeline.html.haml
+++ b/app/views/projects/ci/pipelines/_pipeline.html.haml
@@ -47,21 +47,18 @@
- icon_status = "#{detailed_status.icon}_borderless"
- status_klass = "ci-status-icon ci-status-icon-#{detailed_status.group}"
- .stage-container.mini-pipeline-graph
- .dropdown.inline.build-content
- %button.has-tooltip.builds-dropdown.js-builds-dropdown-button{ type: 'button', data: { toggle: 'dropdown', title: "#{stage.name}: #{detailed_status.label}", placement: 'top', "stage-endpoint" => stage_namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline, stage: stage.name) } }
- %span.has-tooltip{ class: status_klass }
- %span.mini-pipeline-graph-icon-container
- %span{ class: status_klass }= custom_icon(icon_status)
- = icon('caret-down', class: 'dropdown-caret')
+ .stage-container.mini-pipeline-graph.dropdown
+ %button.mini-pipeline-graph-dropdown-toggle.dropdown-toggle.js-builds-dropdown-button{ class: status_klass, type: 'button', data: { toggle: 'dropdown', "stage-endpoint" => stage_namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline, stage: stage.name) } }
+ = custom_icon(icon_status)
+ %span.caret
- .js-builds-dropdown-container
- .dropdown-menu.grouped-pipeline-dropdown
- .arrow-up
- .js-builds-dropdown-list
+ %ul.dropdown-menu.mini-pipeline-graph-dropdown-menu.js-builds-dropdown-container
+ .arrow-up
+ .js-builds-dropdown-list.scrollable-menu
+
+ .js-builds-dropdown-loading.builds-dropdown-loading.hidden
+ %span.fa.fa-spinner.fa-spin
- .js-builds-dropdown-loading.builds-dropdown-loading.hidden
- %span.fa.fa-spinner.fa-spin
%td
- if pipeline.duration
diff --git a/app/views/projects/pipelines/_stage.html.haml b/app/views/projects/pipelines/_stage.html.haml
index cf1b366bf2c..ae64df715a7 100644
--- a/app/views/projects/pipelines/_stage.html.haml
+++ b/app/views/projects/pipelines/_stage.html.haml
@@ -1,4 +1,3 @@
-%ul
- - @stage.statuses.latest.each do |status|
- %li.dropdown-build
- = render 'ci/status/graph_badge', subject: status
+- @stage.statuses.latest.each do |status|
+ %li
+ = render 'ci/status/graph_badge', subject: status