_commit.html.haml 794 字节
Newer Older
D
Dmitriy Zaporozhets 已提交
1
%tr.build
D
Douwe Maan 已提交
2
  %td.status
D
Dmitriy Zaporozhets 已提交
3
    = ci_status_with_icon(commit.status)
D
Douwe Maan 已提交
4 5 6 7 8 9
    - if commit.running?
      ·
      = commit.stage


  %td.build-link
V
Valery Sizov 已提交
10
    = link_to ci_project_ref_commits_path(commit.project, commit.ref, commit.sha) do
D
Douwe Maan 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
      %strong #{commit.short_sha}

  %td.build-message
    %span= truncate_first_line(commit.git_commit_message)

  %td.build-branch
    - unless @ref
      %span
        = link_to truncate(commit.ref, length: 25), ci_project_path(@project, ref: commit.ref)

  %td.duration
    - if commit.duration > 0
      #{time_interval_in_words commit.duration}

  %td.timestamp
    - if commit.finished_at
      %span #{time_ago_in_words commit.finished_at} ago

  - if commit.project.coverage_enabled?
    %td.coverage
      - if commit.coverage
        #{commit.coverage}%