diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-12-04 17:04:33 +0300 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-12-04 18:35:04 +0300 |
commit | cad0661aadff50b4d2c2b4cc7b012809b945213c (patch) | |
tree | e61f53600c08f2ae361c0c1edac6aede3e6f8399 /app/views | |
parent | a648bcad7bb7fcf24c0be81abf273da8d0bbf410 (diff) |
callout when ci variables are protected by default
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/ci/variables/_index.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/ci/variables/_index.html.haml b/app/views/ci/variables/_index.html.haml index f34305e94fa..dc9ccb6cc39 100644 --- a/app/views/ci/variables/_index.html.haml +++ b/app/views/ci/variables/_index.html.haml @@ -1,5 +1,10 @@ - save_endpoint = local_assigns.fetch(:save_endpoint, nil) +- 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 } + .row .col-lg-12.js-ci-variable-list-section{ data: { save_endpoint: save_endpoint } } .hide.alert.alert-danger.js-ci-variable-error-box |