BigW Consortium Gitlab

Commit fa4d41bf by 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 .dropdown.inline.build-content
%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"} %button.dropdown-menu-toggle.has-tooltip{id: "dropdown-#{stage.name}", title: tooltip, class: klass, "data-toggle"=> "dropdown", "aria-haspopup"=> "true", "aria-expanded" => "false"}
= ci_icon_for_status(stage.detailed_status) = custom_icon(detailed_status.icon)
= 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
= ci_icon_for_status(status) = render 'ci/status/graph_badge', subject: status
-# =render 'ci/status/icon_with_name_and_action', subject: status
- else - else
= 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 - if details_path
= ci_icon_for_status(stage.detailed_status) = link_to details_path, class: klass, title: tooltip do
= custom_icon(detailed_status.icon)
%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