extract common env. variable template to partial
This commit is contained in:
parent
2f82972658
commit
ccecf436ab
4 changed files with 13 additions and 17 deletions
11
app/views/ci/variables/_header.html.haml
Normal file
11
app/views/ci/variables/_header.html.haml
Normal file
|
@ -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"
|
|
@ -5,13 +5,7 @@
|
|||
|
||||
%section.settings#ci-variables.no-animate{ class: ('expanded' if expanded) }
|
||||
.settings-header
|
||||
%h4
|
||||
= _('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"
|
||||
= render 'ci/variables/header', expanded: expanded
|
||||
.settings-content
|
||||
= render 'ci/variables/index', save_endpoint: group_variables_path
|
||||
|
||||
|
|
|
@ -43,13 +43,7 @@
|
|||
|
||||
%section.qa-variables-settings.settings.no-animate{ class: ('expanded' if expanded) }
|
||||
.settings-header
|
||||
%h4
|
||||
= _('Environment variables')
|
||||
= link_to icon('question-circle'), help_page_path('ci/variables/README', anchor: 'variables'), target: '_blank', rel: 'noopener noreferrer'
|
||||
%button.btn.js-settings-toggle{ type: 'button' }
|
||||
= expanded ? _('Collapse') : _('Expand')
|
||||
%p.append-bottom-0
|
||||
= render "ci/variables/content"
|
||||
= render 'ci/variables/header', expanded: expanded
|
||||
.settings-content
|
||||
= render 'ci/variables/index', save_endpoint: project_variables_path(@project)
|
||||
|
||||
|
|
|
@ -7086,9 +7086,6 @@ msgstr ""
|
|||
msgid "Users requesting access to"
|
||||
msgstr ""
|
||||
|
||||
msgid "Variables"
|
||||
msgstr ""
|
||||
|
||||
msgid "Various container registry settings."
|
||||
msgstr ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue