summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlexis Reigel <alexis.reigel.ext@siemens.com>2018-12-04 15:04:33 +0100
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2018-12-04 16:35:04 +0100
commitcad0661aadff50b4d2c2b4cc7b012809b945213c (patch)
treee61f53600c08f2ae361c0c1edac6aede3e6f8399 /app
parenta648bcad7bb7fcf24c0be81abf273da8d0bbf410 (diff)
downloadgitlab-ce-cad0661aadff50b4d2c2b4cc7b012809b945213c.tar.gz
callout when ci variables are protected by default
Diffstat (limited to 'app')
-rw-r--r--app/views/ci/variables/_index.html.haml5
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