Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-12-19 20:47:45 +0300
committerFilipa Lacerda <filipa@gitlab.com>2016-12-19 20:47:45 +0300
commitb1613e54894fdf9176df338f0c1e162075dc80ae (patch)
treebdfa74bf829c57e0491d17b42cff6390234d79d6 /app/views/projects/pipelines/_stage.html.haml
parent7269df2822de786716636f757dee0f3780c5b08b (diff)
Makes API call when stage is clicked
Diffstat (limited to 'app/views/projects/pipelines/_stage.html.haml')
-rw-r--r--app/views/projects/pipelines/_stage.html.haml19
1 files changed, 6 insertions, 13 deletions
diff --git a/app/views/projects/pipelines/_stage.html.haml b/app/views/projects/pipelines/_stage.html.haml
index 44533b77eba..83fd518726d 100644
--- a/app/views/projects/pipelines/_stage.html.haml
+++ b/app/views/projects/pipelines/_stage.html.haml
@@ -1,13 +1,6 @@
-- detailed_status = @stage.detailed_status(current_user)
-- klass = "has-tooltip ci-status-icon ci-status-icon-#{detailed_status}"
-- hasMultipleBuilds = @stage.statuses.count > 1
-- icon_status = "#{detailed_status.icon}_borderless"
-- icon_status_klass = "ci-status-icon ci-status-icon-#{detailed_status}"
-- tooltip = "#{@stage.name}: #{detailed_status.label || 'not found'}"
-
-.dropdown.inline.build-content
- %button.has-tooltip.builds-dropdown{ type: 'button', data: { toggle: 'dropdown', title: tooltip} }
- %span{ class: klass }
- %span.mini-pipeline-graph-icon-container
- %span{ class: icon_status_klass }= custom_icon(icon_status)
- = icon('caret-down', class: 'dropdown-caret')
+.dropdown-menu.grouped-pipeline-dropdown
+ .arrow-up
+ %ul
+ - @stage.statuses.each do |status|
+ %li.dropdown-build
+ = render 'ci/status/graph_badge', subject: status