summaryrefslogtreecommitdiff
path: root/app/views/ci/commits/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/ci/commits/show.html.haml')
-rw-r--r--app/views/ci/commits/show.html.haml89
1 files changed, 0 insertions, 89 deletions
diff --git a/app/views/ci/commits/show.html.haml b/app/views/ci/commits/show.html.haml
deleted file mode 100644
index 7ebef8c5e06..00000000000
--- a/app/views/ci/commits/show.html.haml
+++ /dev/null
@@ -1,89 +0,0 @@
-.commit-info
- .append-bottom-20
- = ci_status_with_icon(@commit.status)
-
- .gray-content-block.middle-block
- %pre.commit-message
- - if @commit.git_commit_message
- #{@commit.git_commit_message}
- - else
- No commit message
-
- .gray-content-block.second-block
- .row
- .col-sm-6
- %p
- %span.attr-name Commit:
- #{gitlab_commit_link(@project, @commit.sha)}
- %p
- - if @commit.refs.present?
- %span.attr-name Refs:
- - @commit.refs.each do |ref|
- #{gitlab_ref_link(@project, ref)}
- .col-sm-6
- - if @commit.git_author_name || @commit.git_author_email
- %p
- %span.attr-name Author:
- #{@commit.git_author_name} (#{@commit.git_author_email})
- - if @commit.created_at
- %p
- %span.attr-name Created at:
- #{@commit.created_at.to_s(:short)}
-
- - if current_user && can?(current_user, :manage_builds, gl_project)
- - if @commit.builds.running_or_pending.any?
- .pull-right
- = link_to "Cancel", cancel_ci_project_commits_path(@project, @commit), class: 'btn btn-sm btn-danger'
-
-
-- if @commit.yaml_errors.present?
- .bs-callout.bs-callout-danger
- %h4 Found errors in your .gitlab-ci.yml:
- %ul
- - @commit.yaml_errors.split(",").each do |error|
- %li= error
-
-- unless @commit.ci_yaml_file
- .bs-callout.bs-callout-warning
- \.gitlab-ci.yml not found in this commit
-
-- @commit.refs.each do |ref|
- %h3
- Builds for #{gitlab_ref_link(@project, ref)}
- - if @commit.duration_for_ref(ref) > 0
- %small.pull-right
- %i.fa.fa-time
- #{time_interval_in_words @commit.duration_for_ref(ref)}
-
- %table.table.builds
- %thead
- %tr
- %th Status
- %th Build ID
- %th Stage
- %th Name
- %th Duration
- %th Finished at
- - if @project.coverage_enabled?
- %th Coverage
- %th
- = render @commit.builds_without_retry.for_ref(ref), controls: true
-
-- if @commit.retried_builds.any?
- %h3
- Retried builds
-
- %table.table.builds
- %thead
- %tr
- %th Status
- %th Build ID
- %th Ref
- %th Stage
- %th Name
- %th Duration
- %th Finished at
- - if @project.coverage_enabled?
- %th Coverage
- %th
- = render @commit.retried_builds, ref: true