summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/build/canceled.rb
blob: 0518b9e673da14159be1d5640ab08b9d6e372d77 (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 Canceled < Status::Extended
          def illustration
            {
              image: 'illustrations/canceled-job_empty.svg',
              size: 'svg-430',
              title: _('This job has been canceled')
            }
          end

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