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
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-09-07 12:26:51 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-09-07 12:26:51 +0300
commit38bcf699abf1f8cec7b4e11c914e1baae57f9b81 (patch)
treec76bf0a8ba84869abf7e02a5e1372a27d04bbed8 /app/views/shared/_auto_devops_callout.html.haml
parentedfb5d7b16f064519c7408eb69dd125726b0c652 (diff)
Get the project path through the DOM instead of `gon`
Open the settings section based on the location hash
Diffstat (limited to 'app/views/shared/_auto_devops_callout.html.haml')
-rw-r--r--app/views/shared/_auto_devops_callout.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/shared/_auto_devops_callout.html.haml b/app/views/shared/_auto_devops_callout.html.haml
index fe0f1daf9f2..e4078034a5f 100644
--- a/app/views/shared/_auto_devops_callout.html.haml
+++ b/app/views/shared/_auto_devops_callout.html.haml
@@ -1,4 +1,4 @@
-.user-callout{ data: { uid: 'auto_devops_settings_dismissed' } }
+.user-callout{ data: { uid: 'auto_devops_settings_dismissed', project_path: project_path(@project) } }
.bordered-box.landing.content-block
%button.btn.btn-default.close.js-close-callout{ type: 'button',
'aria-label' => 'Dismiss Auto DevOps box' }
@@ -12,4 +12,4 @@
#{s_('LearnMoreInThe|Learn more in the')}
= link_to _('Auto DevOps documentation'), help_page_path('topics/autodevops/index.md'), target: '_blank', rel: 'noopener noreferrer'
- = link_to _('Enable in settings'), project_settings_ci_cd_path(@project), class: 'btn btn-primary js-close-callout'
+ = link_to _('Enable in settings'), project_settings_ci_cd_path(@project, anchor: 'js-general-pipeline-settings'), class: 'btn btn-primary js-close-callout'