summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/build/canceled.rb
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2018-04-10 13:56:17 +0100
committerSean McGivern <sean@gitlab.com>2018-04-10 13:56:17 +0100
commitc5a4b4ec7b4dfeeeb99dc105ea61d094d779efdf (patch)
treee1ef0535f76ea0ca17ee95cba2e35d7d7c58e502 /lib/gitlab/ci/status/build/canceled.rb
parent2fd7be8c0303afe4394f829ef4db0555dd1c3afa (diff)
parent89c3c4ccec639f23fd7b2c7f64e5b60b1b5708c8 (diff)
downloadgitlab-ce-c5a4b4ec7b4dfeeeb99dc105ea61d094d779efdf.tar.gz
Merge branch 'master' into satishperala/gitlab-ce-20720_webhooks_full_image_urlsatishperala/gitlab-ce-20720_webhooks_full_image_url
Diffstat (limited to 'lib/gitlab/ci/status/build/canceled.rb')
-rw-r--r--lib/gitlab/ci/status/build/canceled.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/gitlab/ci/status/build/canceled.rb b/lib/gitlab/ci/status/build/canceled.rb
new file mode 100644
index 00000000000..c83e2734a73
--- /dev/null
+++ b/lib/gitlab/ci/status/build/canceled.rb
@@ -0,0 +1,21 @@
+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