summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-12-20 11:27:24 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-12-20 11:27:24 +0100
commit51353a6bc7257612412c8712230c0d47667da021 (patch)
tree1f24e7eb2d35e52ed9bd25c59ad2c66bb6165df0
parent5ec1c140d991b37d665c47e52dba4a453cc305a4 (diff)
downloadgitlab-ce-51353a6bc7257612412c8712230c0d47667da021.tar.gz
Always show dropdown
-rw-r--r--app/views/projects/ci/pipelines/_pipeline.html.haml31
1 files changed, 12 insertions, 19 deletions
diff --git a/app/views/projects/ci/pipelines/_pipeline.html.haml b/app/views/projects/ci/pipelines/_pipeline.html.haml
index 6dfc55aa23c..ce8b9f9e8af 100644
--- a/app/views/projects/ci/pipelines/_pipeline.html.haml
+++ b/app/views/projects/ci/pipelines/_pipeline.html.haml
@@ -45,32 +45,25 @@
- if stage.status
- detailed_status = stage.detailed_status(current_user)
- klass = "has-tooltip ci-status-icon ci-status-icon-#{detailed_status.group}"
- - hasMultipleBuilds = stage.statuses.count > 1
- icon_status = "#{detailed_status.icon}_borderless"
- icon_status_klass = "ci-status-icon ci-status-icon-#{detailed_status.group}"
- tooltip = "#{stage.name}: #{detailed_status.label || 'not found'}"
.stage-container.mini-pipeline-graph
- - if hasMultipleBuilds
- .dropdown.inline.build-content
- %button.has-tooltip.builds-dropdown.js-builds-dropdown-button{ type: 'button', data: { toggle: 'dropdown', title: tooltip, placement: 'top', "stage-endpoint" => stage_namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline, stage: stage.name)}}
- %span{ class: klass }
- %span.mini-pipeline-graph-icon-container
- %span{ class: icon_status_klass }= custom_icon(icon_status)
- = icon('caret-down', class: 'dropdown-caret')
-
- .js-builds-dropdown-container
- .dropdown-menu.grouped-pipeline-dropdown
- .arrow-up
- .js-builds-dropdown-list
-
- .js-builds-dropdown-loading.builds-dropdown-loading.hidden
- %span.fa.fa-spinner.fa-spin
- - else
- - if detailed_status.has_details?
- = link_to detailed_status.details_path, class: klass, title: tooltip do
+ .dropdown.inline.build-content
+ %button.has-tooltip.builds-dropdown.js-builds-dropdown-button{ type: 'button', data: { toggle: 'dropdown', title: tooltip, placement: 'top', "stage-endpoint" => stage_namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline, stage: stage.name)}}
+ %span{ class: klass }
%span.mini-pipeline-graph-icon-container
%span{ class: icon_status_klass }= custom_icon(icon_status)
+ = icon('caret-down', class: 'dropdown-caret')
+
+ .js-builds-dropdown-container
+ .dropdown-menu.grouped-pipeline-dropdown
+ .arrow-up
+ .js-builds-dropdown-list
+
+ .js-builds-dropdown-loading.builds-dropdown-loading.hidden
+ %span.fa.fa-spinner.fa-spin
%td
- if pipeline.duration