2015-10-24 18:46:33 +05:30
|
|
|
%tr.commit_status
|
|
|
|
%td.status
|
2015-12-23 02:04:40 +05:30
|
|
|
- if commit_status.target_url
|
|
|
|
= link_to commit_status.target_url, class: "ci-status ci-#{commit_status.status}" do
|
|
|
|
= ci_icon_for_status(commit_status.status)
|
|
|
|
= commit_status.status
|
|
|
|
- else
|
|
|
|
= ci_status_with_icon(commit_status.status)
|
2015-10-24 18:46:33 +05:30
|
|
|
|
|
|
|
%td.commit_status-link
|
|
|
|
- if commit_status.target_url
|
|
|
|
= link_to commit_status.target_url do
|
2015-12-23 02:04:40 +05:30
|
|
|
%strong ##{commit_status.id}
|
2015-10-24 18:46:33 +05:30
|
|
|
- else
|
2015-12-23 02:04:40 +05:30
|
|
|
%strong ##{commit_status.id}
|
2015-10-24 18:46:33 +05:30
|
|
|
|
|
|
|
- if commit_status.show_warning?
|
|
|
|
%i.fa.fa-warning.text-warning
|
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
- if defined?(commit_sha) && commit_sha
|
|
|
|
%td
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to commit_status.short_sha, namespace_project_commit_path(commit_status.project.namespace, commit_status.project, commit_status.sha), class: "monospace"
|
|
|
|
|
2015-10-24 18:46:33 +05:30
|
|
|
%td
|
2015-11-26 14:37:03 +05:30
|
|
|
- if commit_status.ref
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to commit_status.ref, namespace_project_commits_path(commit_status.project.namespace, commit_status.project, commit_status.ref)
|
2015-11-26 14:37:03 +05:30
|
|
|
- else
|
|
|
|
.light none
|
|
|
|
|
|
|
|
- if defined?(runner) && runner
|
|
|
|
%td
|
|
|
|
- if commit_status.try(:runner)
|
|
|
|
= runner_link(commit_status.runner)
|
|
|
|
- else
|
|
|
|
.light none
|
|
|
|
|
|
|
|
- if defined?(stage) && stage
|
|
|
|
%td
|
|
|
|
= commit_status.stage
|
2015-10-24 18:46:33 +05:30
|
|
|
|
|
|
|
%td
|
|
|
|
= commit_status.name
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2015-10-24 18:46:33 +05:30
|
|
|
.pull-right
|
|
|
|
- if commit_status.tags.any?
|
|
|
|
- commit_status.tags.each do |tag|
|
|
|
|
%span.label.label-primary
|
|
|
|
= tag
|
|
|
|
- if commit_status.try(:trigger_request)
|
|
|
|
%span.label.label-info triggered
|
|
|
|
- if commit_status.try(:allow_failure)
|
|
|
|
%span.label.label-danger allowed to fail
|
|
|
|
|
|
|
|
%td.duration
|
|
|
|
- if commit_status.duration
|
|
|
|
#{duration_in_words(commit_status.finished_at, commit_status.started_at)}
|
|
|
|
|
|
|
|
%td.timestamp
|
|
|
|
- if commit_status.finished_at
|
2015-11-26 14:37:03 +05:30
|
|
|
%span #{time_ago_with_tooltip(commit_status.finished_at)}
|
2015-10-24 18:46:33 +05:30
|
|
|
|
|
|
|
- if defined?(coverage) && coverage
|
|
|
|
%td.coverage
|
|
|
|
- if commit_status.try(:coverage)
|
|
|
|
#{commit_status.coverage}%
|
|
|
|
|
|
|
|
%td
|
|
|
|
.pull-right
|
2016-02-05 20:25:01 +05:30
|
|
|
- if current_user && can?(current_user, :read_build_artifacts, commit_status.project) && commit_status.artifacts_download_url
|
2016-01-19 16:12:03 +05:30
|
|
|
= link_to commit_status.artifacts_download_url, title: 'Download artifacts' do
|
2015-11-26 14:37:03 +05:30
|
|
|
%i.fa.fa-download
|
2015-12-23 02:04:40 +05:30
|
|
|
- if current_user && can?(current_user, :manage_builds, commit_status.project)
|
2015-11-26 14:37:03 +05:30
|
|
|
- if commit_status.active?
|
|
|
|
- if commit_status.cancel_url
|
|
|
|
= link_to commit_status.cancel_url, method: :post, title: 'Cancel' do
|
|
|
|
%i.fa.fa-remove.cred
|
2015-10-24 18:46:33 +05:30
|
|
|
- elsif defined?(allow_retry) && allow_retry && commit_status.retry_url
|
|
|
|
= link_to commit_status.retry_url, method: :post, title: 'Retry' do
|
|
|
|
%i.fa.fa-repeat
|