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