summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
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