2020-06-23 00:09:42 +05:30
- expanded = local_assigns.fetch(:expanded)
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2020-06-23 00:09:42 +05:30
= _('Variables')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2020-06-23 00:09:42 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
2021-03-11 19:13:27 +05:30
= _('Variables store information, like passwords and secret keys, that you can use in job scripts. All projects on the instance can use these variables.')
2023-03-17 16:20:25 +05:30
= link_to _('Learn more.'), help_page_path('ci/variables/index', anchor: 'for-an-instance'), target: '_blank', rel: 'noopener noreferrer'
2021-03-11 19:13:27 +05:30
%p
= _('Variables can be:')
2020-06-23 00:09:42 +05:30
%ul
%li
2022-07-16 23:28:13 +05:30
= html_escape(_('%{code_open}Protected:%{code_close} Only exposed to protected branches or protected tags.')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2023-03-17 16:20:25 +05:30
= link_to _('Learn more.'), help_page_path('ci/variables/index', anchor: 'protect-a-cicd-variable'), target: '_blank', rel: 'noopener noreferrer'
2020-06-23 00:09:42 +05:30
%li
2021-03-11 19:13:27 +05:30
= html_escape(_('%{code_open}Masked:%{code_close} Hidden in job logs. Must match masking requirements.')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2021-09-30 23:02:18 +05:30
= link_to _('Learn more.'), help_page_path('ci/variables/index', anchor: 'mask-a-cicd-variable'), target: '_blank', rel: 'noopener noreferrer'