summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-09-21 15:24:19 +0900
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 17:02:11 +0200
commit1a4f497e6093c8d1005986467c8b752cc61c6629 (patch)
tree4ad50ce8528809d31af31ea981328a3a86924b5f /lib
parenta7c767f16446f71f6e35a5aa3d2fdc73037fcdf5 (diff)
downloadgitlab-ce-1a4f497e6093c8d1005986467c8b752cc61c6629.tar.gz
Update pipelines and stages status as well
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/status/build/scheduled.rb24
-rw-r--r--lib/gitlab/ci/status/scheduled.rb23
2 files changed, 24 insertions, 23 deletions
diff --git a/lib/gitlab/ci/status/build/scheduled.rb b/lib/gitlab/ci/status/build/scheduled.rb
index 010d5e2142f..05a97b1de47 100644
--- a/lib/gitlab/ci/status/build/scheduled.rb
+++ b/lib/gitlab/ci/status/build/scheduled.rb
@@ -3,31 +3,9 @@ module Gitlab
module Status
module Build
class Scheduled < Status::Extended
- ###
- # Core override
- ###
- def text
- s_('CiStatusText|scheduled')
- end
-
- def label
- s_('CiStatusLabel|scheduled')
- end
-
- def icon
- 'timer'
- end
-
- def favicon
- 'favicon_status_scheduled'
- end
-
- ###
- # Extension override
- ###
def illustration
{
- image: 'illustrations/canceled-job_empty.svg',
+ image: 'illustrations/scheduled-job_countdown.svg',
size: 'svg-394',
title: _("This is a scheduled to run in ") + " #{execute_in}",
content: _("This job will automatically run after it's timer finishes. Often they are used for incremental roll-out deploys to production environments. When unscheduled it converts into a manual action.")
diff --git a/lib/gitlab/ci/status/scheduled.rb b/lib/gitlab/ci/status/scheduled.rb
new file mode 100644
index 00000000000..f4464d69eb2
--- /dev/null
+++ b/lib/gitlab/ci/status/scheduled.rb
@@ -0,0 +1,23 @@
+module Gitlab
+ module Ci
+ module Status
+ class Scheduled < Status::Core
+ def text
+ s_('CiStatusText|scheduled')
+ end
+
+ def label
+ s_('CiStatusLabel|scheduled')
+ end
+
+ def icon
+ 'timer' # TODO: 'status_scheduled'
+ end
+
+ def favicon
+ 'favicon_status_scheduled'
+ end
+ end
+ end
+ end
+end