BigW Consortium Gitlab

Commit 5dd1d578 by Filipa Lacerda

Fixes the Cookie path

Prepares for i18n
parent fd428a2c
......@@ -22,7 +22,7 @@ export default class UserCallout {
const $currentTarget = $(e.currentTarget);
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 {
Cookies.set(this.cookieName, 'true', { expires: 365 });
}
......
......@@ -6,12 +6,10 @@
.svg-container
= custom_icon('icon_autodevops')
.user-callout-copy
%h4
Auto DevOps (Beta)
%h4= _('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
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
Learn more in the
= link_to 'Auto DevOps documentation', help_page_path('topics/autodevops/index.md'), target: '_blank', rel: 'noopener noreferrer'
#{s_('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
def add_gon_project_variables
gon.project_url = project_url(project)
gon.project_path = project_path(project)
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment