diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-09-20 09:31:08 +0200 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2018-10-02 17:02:11 +0200 |
commit | af51b95442aa867bd570b99d32f8b580f554675d (patch) | |
tree | 9ced97fc0ffe1f485086eca6208de3378dc7c2cf /app/views | |
parent | 33304b32573ac8215e24d17cff52c5a0c7bbed2e (diff) | |
download | gitlab-ce-af51b95442aa867bd570b99d32f8b580f554675d.tar.gz |
Add button group for scheduled jobs
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/ci/builds/_build.html.haml | 11 |
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 |