2017-05-02 18:47:28 -04:00
|
|
|
- show_controls = local_assigns.fetch(:show_controls, true)
|
2017-04-05 11:33:19 -04:00
|
|
|
- pipeline = @build.pipeline
|
2017-03-28 16:27:16 -04:00
|
|
|
|
2017-02-22 18:42:14 -05:00
|
|
|
.content-block.build-header.top-area
|
2016-10-26 13:48:27 -04:00
|
|
|
.header-content
|
2017-04-05 11:33:19 -04:00
|
|
|
= render 'ci/status/badge', status: @build.detailed_status(current_user), link: false, title: @build.status_title
|
2017-05-02 18:47:28 -04:00
|
|
|
%strong
|
|
|
|
Job
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to "##{@build.id}", project_job_path(@project, @build), class: 'js-build-id'
|
2016-10-24 16:20:27 -04:00
|
|
|
in pipeline
|
2017-05-11 11:47:44 -04:00
|
|
|
%strong
|
|
|
|
= link_to "##{pipeline.id}", pipeline_path(pipeline)
|
|
|
|
for
|
|
|
|
%strong
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to pipeline.short_sha, project_commit_path(@project, pipeline.sha), class: 'commit-sha'
|
2016-10-26 13:48:27 -04:00
|
|
|
from
|
2017-05-11 11:47:44 -04:00
|
|
|
%strong
|
|
|
|
= link_to @build.ref, project_ref_path(@project, @build.ref), class: 'ref-name'
|
2017-05-02 18:47:28 -04:00
|
|
|
|
2017-05-16 07:41:15 -04:00
|
|
|
= render "projects/jobs/user" if @build.user
|
2017-05-02 18:47:28 -04:00
|
|
|
|
2016-10-26 13:48:27 -04:00
|
|
|
= time_ago_with_tooltip(@build.created_at)
|
2017-05-02 18:47:28 -04:00
|
|
|
|
|
|
|
- if show_controls
|
|
|
|
.nav-controls
|
|
|
|
- if can?(current_user, :create_issue, @project) && @build.failed?
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to "New issue", new_project_issue_path(@project, issue: build_failed_issue_options), class: 'btn btn-new btn-inverted'
|
2017-05-02 18:47:28 -04:00
|
|
|
- if can?(current_user, :update_build, @build) && @build.retryable?
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to "Retry job", retry_project_job_path(@project, @build), class: 'btn btn-inverted-secondary', method: :post
|
2017-05-02 18:47:28 -04:00
|
|
|
%button.btn.btn-default.pull-right.visible-xs-block.visible-sm-block.build-gutter-toggle.js-sidebar-build-toggle{ role: "button", type: "button" }
|
|
|
|
= icon('angle-double-left')
|