2018-10-30 15:05:07 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-12-08 03:51:36 -05:00
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
module Status
|
|
|
|
module Build
|
|
|
|
module Common
|
2018-04-10 06:56:52 -04:00
|
|
|
def illustration
|
|
|
|
{
|
|
|
|
image: 'illustrations/skipped-job_empty.svg',
|
2018-04-10 08:27:34 -04:00
|
|
|
size: 'svg-430',
|
2018-04-10 08:37:08 -04:00
|
|
|
title: _('This job does not have a trace.')
|
2018-04-10 06:56:52 -04:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2016-12-08 08:28:49 -05:00
|
|
|
def has_details?
|
|
|
|
can?(user, :read_build, subject)
|
2016-12-08 03:51:36 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def details_path
|
2017-06-29 13:06:35 -04:00
|
|
|
project_job_path(subject.project, subject)
|
2016-12-08 03:51:36 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|