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
- link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('ci/variables/README', anchor: 'protected-variables') }
= 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 }
2018-03-17 18:26:18 +05:30
.row
2019-09-04 21:01:54 +05:30
.col-lg-12.js-ci-variable-list-section{ data: { save_endpoint: save_endpoint, maskable_regex: ci_variable_maskable_regex } }
2018-03-17 18:26:18 +05:30
.hide.alert.alert-danger.js-ci-variable-error-box
%ul.ci-variable-list
2019-07-31 22:56:46 +05:30
= render 'ci/variables/variable_header'
2018-03-17 18:26:18 +05:30
- @variables.each.each do |variable|
= render 'ci/variables/variable_row', form_field: 'variables', variable: variable
= render 'ci/variables/variable_row', form_field: 'variables'
.prepend-top-20
2018-12-13 13:39:08 +05:30
%button.btn.btn-success.js-ci-variables-save-button{ type: 'button' }
%span.hide.js-ci-variables-save-loading-icon
2018-03-17 18:26:18 +05:30
= icon('spinner spin')
= _('Save variables')
%button.btn.btn-info.btn-inverted.prepend-left-10.js-secret-value-reveal-button{ type: 'button', data: { secret_reveal_status: "#{@variables.size == 0}" } }
- if @variables.size == 0
= n_('Hide value', 'Hide values', @variables.size)
- else
= n_('Reveal value', 'Reveal values', @variables.size)