Commit fa4d41bf authored by Filipa Lacerda's avatar Filipa Lacerda

Render with new partials

parent 01876ecc
...@@ -43,27 +43,28 @@ ...@@ -43,27 +43,28 @@
%td.stage-cell %td.stage-cell
- pipeline.stages.each do |stage| - pipeline.stages.each do |stage|
- if stage.status - if stage.status
- status = ci_label_for_status(stage.detailed_status) - detailed_status = stage.detailed_status(current_user)
- details_path = detailed_status.details_path if detailed_status.has_details?
- klass = "has-tooltip ci-status-icon ci-status-icon-#{detailed_status}"
- hasMultipleBuilds = stage.statuses.count > 1 - hasMultipleBuilds = stage.statuses.count > 1
- tooltip = "#{stage.name.titleize}: #{stage.status || 'not found'}" - tooltip = "#{stage.name.titleize}: #{stage.status || 'not found'}"
- if status .stage-container
.stage-container - if hasMultipleBuilds
- if hasMultipleBuilds .dropdown.inline.build-content
.dropdown.inline %button.dropdown-menu-toggle.has-tooltip{id: "dropdown-#{stage.name}", title: tooltip, class: klass, "data-toggle"=> "dropdown", "aria-haspopup"=> "true", "aria-expanded" => "false"}
%a.dropdown-toggle.builds-dropdown{id: "dropdown-#{stage.name}", title: tooltip, class: "has-tooltip ci-status-icon-#{stage.status}", "data-toggle"=> "dropdown", "aria-haspopup"=> "true", "aria-expanded" => "false"} = custom_icon(detailed_status.icon)
= ci_icon_for_status(stage.detailed_status) = icon('caret-down', class: 'dropdown-caret')
= icon('caret-down', class: 'dropdown-caret') .dropdown-menu.grouped-pipeline-dropdown{"aria-labelledby"=> "dropdown-#{stage.name}"}
.dropdown-menu.grouped-pipeline-dropdown{"aria-labelledby"=> "dropdown-#{stage.name}"} .arrow
.arrow %ul
%ul - stage.statuses.each do |status|
- stage.statuses.each do |status| %li
%li = render 'ci/status/graph_badge', subject: status
= ci_icon_for_status(status) - else
-# =render 'ci/status/icon_with_name_and_action', subject: status - if details_path
- else = link_to details_path, class: klass, title: tooltip do
= link_to namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline.id, anchor: stage.name), class: "has-tooltip ci-status-icon-#{stage.status}", title: tooltip do = custom_icon(detailed_status.icon)
= ci_icon_for_status(stage.detailed_status)
%td %td
- if pipeline.duration - if pipeline.duration
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment