_build.html.haml 822 字节
Newer Older
D
Douwe Maan 已提交
1
- if build.commit && build.project
D
Dmitriy Zaporozhets 已提交
2
  %tr.build
D
Douwe Maan 已提交
3
    %td.build-link
V
Valery Sizov 已提交
4
      = link_to ci_project_build_url(build.project, build) do
D
Douwe Maan 已提交
5 6 7
        %strong #{build.id}

    %td.status
D
Dmitriy Zaporozhets 已提交
8
      = ci_status_with_icon(build.status)
D
Douwe Maan 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

    %td.commit-link
      = commit_link(build.commit)

    %td.runner
      - if build.runner
        = link_to build.runner.id, ci_admin_runner_path(build.runner)

    %td.build-project
      = truncate build.project.name, length: 30

    %td.build-message
      %span= truncate(build.commit.git_commit_message, length: 30)

    %td.build-branch
      %span= truncate(build.ref, length: 25)

    %td.duration
      - if build.duration
        #{duration_in_words(build.finished_at, build.started_at)}

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