diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-12-04 13:50:20 +0100 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-12-04 16:35:04 +0100 |
commit | ccecf436abdca602e703e09f1017f4376263c1d9 (patch) | |
tree | 1819679ae14ba6a546c57e45578fcf9aa803a5c5 /app/views/ci | |
parent | 2f8297265855ccb811171a359841f4269189f312 (diff) | |
download | gitlab-ce-ccecf436abdca602e703e09f1017f4376263c1d9.tar.gz |
extract common env. variable template to partial
Diffstat (limited to 'app/views/ci')
-rw-r--r-- | app/views/ci/variables/_header.html.haml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/ci/variables/_header.html.haml b/app/views/ci/variables/_header.html.haml new file mode 100644 index 00000000000..cb7779e2175 --- /dev/null +++ b/app/views/ci/variables/_header.html.haml @@ -0,0 +1,11 @@ +- expanded = local_assigns.fetch(:expanded) + +%h4 + = _('Environment variables') + = link_to icon('question-circle'), help_page_path('ci/variables/README', anchor: 'variables'), target: '_blank', rel: 'noopener noreferrer' + +%button.btn.btn-default.js-settings-toggle{ type: 'button' } + = expanded ? _('Collapse') : _('Expand') + +%p.append-bottom-0 + = render "ci/variables/content" |