summaryrefslogtreecommitdiff
path: root/app/views/projects/pipelines
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-12-19 17:47:45 +0000
committerFilipa Lacerda <filipa@gitlab.com>2016-12-19 17:47:45 +0000
commitb1613e54894fdf9176df338f0c1e162075dc80ae (patch)
treebdfa74bf829c57e0491d17b42cff6390234d79d6 /app/views/projects/pipelines
parent7269df2822de786716636f757dee0f3780c5b08b (diff)
downloadgitlab-ce-b1613e54894fdf9176df338f0c1e162075dc80ae.tar.gz
Makes API call when stage is clicked
Diffstat (limited to 'app/views/projects/pipelines')
-rw-r--r--app/views/projects/pipelines/_stage.html.haml19
-rw-r--r--app/views/projects/pipelines/index.html.haml2
2 files changed, 7 insertions, 14 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
diff --git a/app/views/projects/pipelines/index.html.haml b/app/views/projects/pipelines/index.html.haml
index 4d009871f0d..28026ccf861 100644
--- a/app/views/projects/pipelines/index.html.haml
+++ b/app/views/projects/pipelines/index.html.haml
@@ -42,7 +42,7 @@
.nothing-here-block No pipelines to show
- else
.table-holder
- %table.table.ci-table
+ %table.table.ci-table.js-pipeline-table
%thead
%th.pipeline-status Status
%th.pipeline-info Pipeline