diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-12-19 20:47:45 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-12-19 20:47:45 +0300 |
commit | b1613e54894fdf9176df338f0c1e162075dc80ae (patch) | |
tree | bdfa74bf829c57e0491d17b42cff6390234d79d6 /app/views/projects/pipelines/_stage.html.haml | |
parent | 7269df2822de786716636f757dee0f3780c5b08b (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.haml | 19 |
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 |