diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/status/build/scheduled.rb | 24 | ||||
-rw-r--r-- | lib/gitlab/ci/status/scheduled.rb | 23 |
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 |