debian-mirror-gitlab/app/views/ci/variables/_index.html.haml

29 lines
1.6 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- save_endpoint = local_assigns.fetch(:save_endpoint, nil)
2019-02-15 15:39:39 +05:30
- if ci_variable_protected_by_default?
%p.settings-message.text-center
2021-09-30 23:02:18 +05:30
- link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('ci/variables/index', anchor: 'protect-a-cicd-variable') }
2021-03-11 19:13:27 +05:30
= s_('Environment variables are configured by your administrator to be %{link_start}protected%{link_end} by default.').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
2019-02-15 15:39:39 +05:30
2021-01-29 00:20:46 +05:30
- is_group = !@group.nil?
2018-03-17 18:26:18 +05:30
2021-01-29 00:20:46 +05:30
#js-ci-project-variables{ data: { endpoint: save_endpoint,
project_id: @project&.id || '',
group: is_group.to_s,
maskable_regex: ci_variable_maskable_regex,
protected_by_default: ci_variable_protected_by_default?.to_s,
aws_logo_svg_path: image_path('aws_logo.svg'),
aws_tip_deploy_link: help_page_path('ci/cloud_deployment/index.md', anchor: 'deploy-your-application-to-the-aws-elastic-container-service-ecs'),
aws_tip_commands_link: help_page_path('ci/cloud_deployment/index.md', anchor: 'run-aws-commands-from-gitlab-cicd'),
aws_tip_learn_link: help_page_path('ci/cloud_deployment/index.md', anchor: 'aws'),
2021-11-11 11:23:49 +05:30
contains_variable_reference_link: help_page_path('ci/variables/index', anchor: 'use-variables-in-other-variables'),
2021-09-30 23:02:18 +05:30
protected_environment_variables_link: help_page_path('ci/variables/index', anchor: 'protect-a-cicd-variable'),
masked_environment_variables_link: help_page_path('ci/variables/index', anchor: 'mask-a-cicd-variable'),
2021-01-29 00:20:46 +05:30
} }
2020-04-08 14:13:33 +05:30
- if !@group && @project.group
2021-03-08 18:12:59 +05:30
.settings-header.border-top.gl-mt-6
2020-04-08 14:13:33 +05:30
= render 'ci/group_variables/header'
.settings-content.pr-0
= render 'ci/group_variables/index'