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-01-27 09:20:57 -05:00
|
|
|
= render 'ci/status/badge', status: @build.detailed_status(current_user), link: false
|
2017-01-25 10:51:11 -05:00
|
|
|
Job
|
2017-01-25 06:30:08 -05:00
|
|
|
%strong.js-build-id ##{@build.id}
|
2016-10-24 16:20:27 -04:00
|
|
|
in pipeline
|
|
|
|
= link_to pipeline_path(@build.pipeline) do
|
|
|
|
%strong ##{@build.pipeline.id}
|
2016-10-26 13:48:27 -04:00
|
|
|
for commit
|
2016-11-25 13:10:32 -05:00
|
|
|
= link_to namespace_project_commit_path(@project.namespace, @project, @build.pipeline.sha) do
|
2016-10-26 13:48:27 -04:00
|
|
|
%strong= @build.pipeline.short_sha
|
|
|
|
from
|
|
|
|
= link_to namespace_project_commits_path(@project.namespace, @project, @build.ref) do
|
|
|
|
%code
|
|
|
|
= @build.ref
|
|
|
|
- if @build.user
|
|
|
|
= render "user"
|
|
|
|
= time_ago_with_tooltip(@build.created_at)
|
2017-02-22 18:42:14 -05:00
|
|
|
.nav-controls
|
|
|
|
- if can?(current_user, :create_issue, @project) && @build.failed?
|
|
|
|
= link_to "New issue", new_namespace_project_issue_path(@project.namespace, @project, issue: build_failed_issue_options), class: 'btn btn-new btn-inverted'
|
|
|
|
- if can?(current_user, :update_build, @build) && @build.retryable?
|
|
|
|
= link_to "Retry job", retry_namespace_project_build_path(@project.namespace, @project, @build), class: 'btn btn-inverted-secondary', method: :post
|
2016-04-20 05:11:22 -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')
|