BigW Consortium Gitlab

_mr_ci.html.haml 982 Bytes
Newer Older
1
- if @commits.any?
2
  .ci_widget.ci-success{style: "display:none"}
3 4 5 6
    %i.icon-ok
    %strong CI build passed
    for #{@merge_request.last_commit_short_sha}.
    = link_to "Build page", ci_build_details_path(@merge_request)
7 8 9


  .ci_widget.ci-failed{style: "display:none"}
10 11 12 13
    %i.icon-remove
    %strong CI build failed
    for #{@merge_request.last_commit_short_sha}.
    = link_to "Build page", ci_build_details_path(@merge_request)
14 15 16

  - [:running, :pending].each do |status|
    .ci_widget{class: "ci-#{status}", style: "display:none"}
17 18 19 20
      %i.icon-time
      %strong CI build #{status}
      for #{@merge_request.last_commit_short_sha}.
      = link_to "Build page", ci_build_details_path(@merge_request)
21 22

  .ci_widget
23 24 25
    %strong
      %i.icon-spinner
      Checking for CI status for #{@merge_request.last_commit_short_sha}
26 27

  .ci_widget.ci-error{style: "display:none"}
28
    %i.icon-remove
29
    %strong Cannot connect to the CI server. Please check your settings and try again.