diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-10-02 14:34:02 +0200 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2018-10-02 17:08:14 +0200 |
commit | 64ad6458486dc53da0a646419e4702319df6dace (patch) | |
tree | 4b46d079ef8a6b26dfacae8b87e56032864d3e8e /app/views/projects/ci/builds | |
parent | c9e8b59c8540f7be198463db4477130046a8d655 (diff) | |
download | gitlab-ce-64ad6458486dc53da0a646419e4702319df6dace.tar.gz |
Add confirmation for immediately starting scheduled jobs
Diffstat (limited to 'app/views/projects/ci/builds')
-rw-r--r-- | app/views/projects/ci/builds/_build.html.haml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/ci/builds/_build.html.haml b/app/views/projects/ci/builds/_build.html.haml index 2b699770998..59c297c46a5 100644 --- a/app/views/projects/ci/builds/_build.html.haml +++ b/app/views/projects/ci/builds/_build.html.haml @@ -109,10 +109,12 @@ title: job.scheduled_at } = sprite_icon('planning') = duration_in_numbers(job.execute_in, true) + - confirmation_message = s_("DelayedJobs|Are you sure you want to run %{job_name} immediately? This job will run automatically after it's timer finishes.") % { job_name: job.name } = link_to play_project_job_path(job.project, job, return_to: request.original_url), method: :post, title: s_('DelayedJobs|Start now'), - class: 'btn btn-default btn-build has-tooltip' do + class: 'btn btn-default btn-build has-tooltip', + data: { confirm: confirmation_message } do = sprite_icon('play') = link_to unschedule_project_job_path(job.project, job, return_to: request.original_url), method: :post, |