summaryrefslogtreecommitdiff
path: root/app/views/projects/ci
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-12-14 18:34:56 +0000
committerFilipa Lacerda <filipa@gitlab.com>2016-12-15 19:55:21 +0000
commit708125853117916ce3eeb809e5bb7518c8e5e3d8 (patch)
tree9a8852fd8f2aaa201a8387d1e8242cadbd07b5c6 /app/views/projects/ci
parentfa4d41bf1836755cbf1f28af1d7841dcd81efeb8 (diff)
downloadgitlab-ce-708125853117916ce3eeb809e5bb7518c8e5e3d8.tar.gz
Dropdown with arrow
Diffstat (limited to 'app/views/projects/ci')
-rw-r--r--app/views/projects/ci/pipelines/_pipeline.html.haml15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/projects/ci/pipelines/_pipeline.html.haml b/app/views/projects/ci/pipelines/_pipeline.html.haml
index e82faf4f6d3..9ecdb6269b9 100644
--- a/app/views/projects/ci/pipelines/_pipeline.html.haml
+++ b/app/views/projects/ci/pipelines/_pipeline.html.haml
@@ -49,17 +49,18 @@
- hasMultipleBuilds = stage.statuses.count > 1
- tooltip = "#{stage.name.titleize}: #{stage.status || 'not found'}"
- .stage-container
+ .stage-container.mini-pipeline-graph
- if hasMultipleBuilds
.dropdown.inline.build-content
- %button.dropdown-menu-toggle.has-tooltip{id: "dropdown-#{stage.name}", title: tooltip, class: klass, "data-toggle"=> "dropdown", "aria-haspopup"=> "true", "aria-expanded" => "false"}
- = custom_icon(detailed_status.icon)
- = icon('caret-down', class: 'dropdown-caret')
- .dropdown-menu.grouped-pipeline-dropdown{"aria-labelledby"=> "dropdown-#{stage.name}"}
- .arrow
+ %button.has-tooltip.builds-dropdown{ type: 'button', data: { toggle: 'dropdown', title: tooltip} }
+ %span{ class: klass }
+ = ci_icon_for_status(detailed_status.icon)
+ %span= icon('caret-down', class: 'dropdown-caret')
+ .dropdown-menu.grouped-pipeline-dropdown
+ .arrow-up
%ul
- stage.statuses.each do |status|
- %li
+ %li.dropdown-build
= render 'ci/status/graph_badge', subject: status
- else
- if details_path