BigW Consortium Gitlab

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


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

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

  .ci_widget
Dmitriy Zaporozhets committed
26
    .alert.alert-warning
27
      %strong
28
        %i.icon-spinner
29 30 31
        Checking for CI status for #{@merge_request.last_commit_short_sha}

  .ci_widget.ci-error{style: "display:none"}
32
    .alert.alert-danger
33 34 35
      %i.icon-remove
      %strong Cannot connect to CI server. Please check your setting