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-10-02 15:34:02 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2018-10-02 18:08:14 +0300
commit64ad6458486dc53da0a646419e4702319df6dace (patch)
tree4b46d079ef8a6b26dfacae8b87e56032864d3e8e /app/views
parentc9e8b59c8540f7be198463db4477130046a8d655 (diff)
Add confirmation for immediately starting scheduled jobs
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/ci/builds/_build.html.haml4
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,