summaryrefslogtreecommitdiff
path: root/app/views/projects/commit/_pipeline_status_group.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/commit/_pipeline_status_group.html.haml')
-rw-r--r--app/views/projects/commit/_pipeline_status_group.html.haml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/projects/commit/_pipeline_status_group.html.haml b/app/views/projects/commit/_pipeline_status_group.html.haml
new file mode 100644
index 00000000000..18daa2ee693
--- /dev/null
+++ b/app/views/projects/commit/_pipeline_status_group.html.haml
@@ -0,0 +1,13 @@
+- group_status = CommitStatus.where(id: subject).status
+%button.dropdown-menu-toggle.has-tooltip{ type: 'button', data: { toggle: 'dropdown', title: "#{name} - #{group_status}" } }
+ %span.ci-status-icon
+ = ci_icon_for_status(group_status)
+ %span.ci-status-text
+ = name
+ %span.badge= subject.size
+.dropdown-menu.grouped-pipeline-dropdown
+ .arrow
+ %ul
+ - subject.each do |status|
+ %li
+ = render "projects/#{status.to_partial_path}_pipeline", subject: status