summaryrefslogtreecommitdiff
path: root/app/views/projects/jobs/_header.html.haml
blob: 018ff09347593bbdd039134dd512a1d7180dcd52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- pipeline = @build.pipeline

.content-block.build-header.top-area.page-content-header
  .header-content
    = render 'ci/status/badge', status: @build.detailed_status(current_user), link: false, title: @build.status_title
    %strong
      Job
      = link_to "##{@build.id}", project_job_path(@project, @build), class: 'js-build-id'
    in pipeline
    %strong
      = link_to "##{pipeline.id}", pipeline_path(pipeline)
    for
    %strong
      = link_to pipeline.short_sha, project_commit_path(@project, pipeline.sha), class: 'commit-sha'
    from
    %strong
      = link_to @build.ref, project_ref_path(@project, @build.ref), class: 'ref-name'

    = render "projects/jobs/user" if @build.user

    = time_ago_with_tooltip(@build.created_at)