blob: 2cd3d7c0155be631154c3f81c6b74a6f672b837a (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
%tr.build.alert{class: build_status_alert_class(build)}
%td.status
= build.status
%td.build-link
= link_to project_build_path(build.project, build) do
%strong Build ##{build.id}
%td
- if build.job
- if build.for_tag?
Tag
·
#{build.ref}
- else
Commit
·
#{build.short_sha}
%td
= build.job_name
- if build.tags.any?
.pull-right
- build.tag_list.each do |tag|
%span.label.label-primary
= tag
%td.duration
- if build.duration
#{distance_of_time_in_words build.duration}
%td.timestamp
- if build.finished_at
%span #{time_ago_in_words build.finished_at} ago
- if build.project.coverage_enabled?
%td.coverage
- if build.coverage
#{build.coverage}%
%td
- if defined?(controls) && current_user.can_manage_project?(@project.gitlab_id)
.pull-right
- if build.active?
= link_to cancel_project_build_path(build.project, build, return_to: request.original_url), title: 'Cancel build' do
%i.icon-remove.cred
- else
= link_to retry_project_build_path(build.project, build, return_to: request.original_url), method: :post, title: 'Retry build' do
%i.icon-repeat
|