summaryrefslogtreecommitdiff
path: root/app/views/ci/admin/builds/_build.html.haml
blob: 2df5871321404bd3ed5ecb03418e6ef8e2326f7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- gl_project = build.project.gl_project
- if build.commit && build.project
  %tr.build
    %td.build-link
      = link_to namespace_project_build_path(gl_project.namespace, gl_project, build) do
        %strong #{build.id}

    %td.status
      = ci_status_with_icon(build.status)

    %td.commit-link
      = link_to ci_status_path(build.commit) do
        %strong #{build.commit.short_sha}

    %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