Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Reigel <alexis.reigel.ext@siemens.com>2018-12-04 15:50:20 +0300
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2018-12-04 18:35:04 +0300
commitccecf436abdca602e703e09f1017f4376263c1d9 (patch)
tree1819679ae14ba6a546c57e45578fcf9aa803a5c5 /app/views/ci
parent2f8297265855ccb811171a359841f4269189f312 (diff)
extract common env. variable template to partial
Diffstat (limited to 'app/views/ci')
-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"