Class: Gitlab::Ci::Status::Build::Created

Inherits:
Extended
  • Object
show all
Defined in:
lib/gitlab/ci/status/build/created.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Extended

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Ci::Status::Extended

Class Method Details

.matches?(build, user) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/gitlab/ci/status/build/created.rb', line 17

def self.matches?(build, user)
  build.created?
end

Instance Method Details

#illustrationObject



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

def illustration
  {
    image: 'illustrations/job_not_triggered.svg',
    size: 'svg-306',
    title: _('This job has not been triggered yet'),
    content: _('This job depends on upstream jobs that need to succeed in order for this job to be triggered')
  }
end