parent
fd428a2c1f
commit
5dd1d5782e
|
@ -22,7 +22,7 @@ export default class UserCallout {
|
||||||
const $currentTarget = $(e.currentTarget);
|
const $currentTarget = $(e.currentTarget);
|
||||||
|
|
||||||
if (this.options.setCalloutPerProject) {
|
if (this.options.setCalloutPerProject) {
|
||||||
Cookies.set(this.cookieName, 'true', { expires: 365, path: gon.project_url });
|
Cookies.set(this.cookieName, 'true', { expires: 365, path: gon.project_path });
|
||||||
} else {
|
} else {
|
||||||
Cookies.set(this.cookieName, 'true', { expires: 365 });
|
Cookies.set(this.cookieName, 'true', { expires: 365 });
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,12 +6,10 @@
|
||||||
.svg-container
|
.svg-container
|
||||||
= custom_icon('icon_autodevops')
|
= custom_icon('icon_autodevops')
|
||||||
.user-callout-copy
|
.user-callout-copy
|
||||||
%h4
|
%h4= _('Auto DevOps (Beta)')
|
||||||
Auto DevOps (Beta)
|
%p= _('Auto DevOps can be activated for this project. It will automatically build, test, and deploy your application based on a predefined CI/CD configuration.')
|
||||||
%p
|
%p
|
||||||
Auto DevOps can be activated for this project. It will automatically build, test, and deploy your application based on a predefined CI/CD configuration.
|
#{s_('Learn more in the')}
|
||||||
%p
|
= link_to _('Auto DevOps documentation'), help_page_path('topics/autodevops/index.md'), target: '_blank', rel: 'noopener noreferrer'
|
||||||
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), class: 'btn btn-primary js-close-callout'
|
||||||
|
|
|
@ -30,7 +30,7 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_gon_project_variables
|
def add_gon_project_variables
|
||||||
gon.project_url = project_url(project)
|
gon.project_path = project_path(project)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue