summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorAmmar Alakkad <aalakkad@gitlab.com>2019-09-04 20:48:58 +0000
committerPaul Slaughter <pslaughter@gitlab.com>2019-09-04 20:48:58 +0000
commitc2fb7f85b3bd48195200e7de9f2b380e282b306f (patch)
treefc2ac60f5e62d2daeb5304c7d48af4177bc93d50 /app/helpers
parent1f0aacb85400ee9ee7db1a8ba5b84db0becb521e (diff)
downloadgitlab-ce-c2fb7f85b3bd48195200e7de9f2b380e282b306f.tar.gz
Update Pipelines Minutes expire banner (CE)
- remove hiding the alert functionality - use `danger` class instead of `warning` https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14786
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/jobs_helper.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/helpers/jobs_helper.rb b/app/helpers/jobs_helper.rb
new file mode 100644
index 00000000000..46edba261dd
--- /dev/null
+++ b/app/helpers/jobs_helper.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+module JobsHelper
+ def jobs_data
+ {
+ "endpoint" => project_job_path(@project, @build, format: :json),
+ "project_path" => @project.full_path,
+ "deployment_help_url" => help_page_path('user/project/clusters/index.html', anchor: 'troubleshooting-failed-deployment-jobs'),
+ "runner_help_url" => help_page_path('ci/runners/README.html', anchor: 'setting-maximum-job-timeout-for-a-runner'),
+ "runner_settings_url" => project_runners_path(@build.project, anchor: 'js-runners-settings'),
+ "variables_settings_url" => project_variables_path(@build.project, anchor: 'js-cicd-variables-settings'),
+ "page_path" => project_job_path(@project, @build),
+ "build_status" => @build.status,
+ "build_stage" => @build.stage,
+ "log_state" => '',
+ "build_options" => javascript_build_options
+ }
+ end
+end