Welcome to mirror list, hosted at ThFree Co, Russian Federation.

erased.rb « build « status « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c3430b8cc1ce08e4c90d67e59be8129546db7b63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Gitlab
  module Ci
    module Status
      module Build
        class Erased < Status::Extended
          def illustration
            {
              image: 'illustrations/empty-state/empty-projects-deleted-md.svg',
              size: 'svg-150',
              title: _('Job has been erased')
            }
          end

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