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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2018-09-20 10:31:08 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 18:02:11 +0300
commitaf51b95442aa867bd570b99d32f8b580f554675d (patch)
tree9ced97fc0ffe1f485086eca6208de3378dc7c2cf /app/views
parent33304b32573ac8215e24d17cff52c5a0c7bbed2e (diff)
Add button group for scheduled jobs
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/ci/builds/_build.html.haml11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/projects/ci/builds/_build.html.haml b/app/views/projects/ci/builds/_build.html.haml
index 44c1453e239..1ba8b698fe2 100644
--- a/app/views/projects/ci/builds/_build.html.haml
+++ b/app/views/projects/ci/builds/_build.html.haml
@@ -101,6 +101,17 @@
- if job.active?
= link_to cancel_project_job_path(job.project, job, return_to: request.original_url), method: :post, title: 'Cancel', class: 'btn btn-build' do
= icon('remove', class: 'cred')
+ - elsif job.scheduled?
+ .btn-group
+ .btn.btn-default.has-tooltip{ disabled: true,
+ title: job.build_schedule.execute_at }
+ = sprite_icon('planning')
+ = duration_in_numbers(job.build_schedule.execute_in)
+ .btn.btn-default.btn-build.has-tooltip{ title: s_('DelayedJobs|Start now') }
+ = sprite_icon('play')
+ .btn.btn-default.btn-build.has-tooltip{ title: s_('DelayedJobs|Unschedule') }
+ = sprite_icon('cancel')
+ -# sprite_icon('status_scheduled_borderless')
- elsif allow_retry
- if job.playable? && !admin && can?(current_user, :update_build, job)
= link_to play_project_job_path(job.project, job, return_to: request.original_url), method: :post, title: 'Play', class: 'btn btn-build' do