Module: Gitlab::Ci::Status::Build::Common

Defined in:
lib/gitlab/ci/status/build/common.rb

Instance Method Summary collapse

Instance Method Details

#details_pathObject


20
21
22
# File 'lib/gitlab/ci/status/build/common.rb', line 20

def details_path
  project_job_path(subject.project, subject)
end

#has_details?Boolean

Returns:

  • (Boolean)

16
17
18
# File 'lib/gitlab/ci/status/build/common.rb', line 16

def has_details?
  can?(user, :read_build, subject)
end

#illustrationObject


8
9
10
11
12
13
14
# File 'lib/gitlab/ci/status/build/common.rb', line 8

def illustration
  {
    image: 'illustrations/skipped-job_empty.svg',
    size: 'svg-430',
    title: _('This job does not have a trace.')
  }
end