summaryrefslogtreecommitdiff
path: root/app/views/ci/variables/_header.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/ci/variables/_header.html.haml')
-rw-r--r--app/views/ci/variables/_header.html.haml11
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"