gitlab-org--gitlab-foss/lib/gitlab/ci/status/build/common.rb

28 lines
558 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-12-08 03:51:36 -05:00
module Gitlab
module Ci
module Status
module Build
module Common
def illustration
{
image: 'illustrations/skipped-job_empty.svg',
size: 'svg-430',
title: _('This job does not have a trace.')
}
end
def has_details?
can?(user, :read_build, subject)
2016-12-08 03:51:36 -05:00
end
def details_path
project_job_path(subject.project, subject)
2016-12-08 03:51:36 -05:00
end
end
end
end
end
end