BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3f91c916
Commit
3f91c916
authored
Apr 04, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make group settings page have expandable menus (#10244)
parent
58aa2d7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
index.js
...ets/javascripts/pages/groups/settings/ci_cd/show/index.js
+4
-0
show.html.haml
app/views/groups/settings/ci_cd/show.html.haml
+12
-7
No files found.
app/assets/javascripts/pages/groups/settings/ci_cd/show/index.js
View file @
3f91c916
import
initSettingsPanels
from
'~/settings_panels'
;
import
AjaxVariableList
from
'~/ci_variable_list/ajax_variable_list'
;
import
AjaxVariableList
from
'~/ci_variable_list/ajax_variable_list'
;
document
.
addEventListener
(
'DOMContentLoaded'
,
()
=>
{
document
.
addEventListener
(
'DOMContentLoaded'
,
()
=>
{
// Initialize expandable settings panels
initSettingsPanels
();
const
variableListEl
=
document
.
querySelector
(
'.js-ci-variable-list-section'
);
const
variableListEl
=
document
.
querySelector
(
'.js-ci-variable-list-section'
);
// eslint-disable-next-line no-new
// eslint-disable-next-line no-new
new
AjaxVariableList
({
new
AjaxVariableList
({
...
...
app/views/groups/settings/ci_cd/show.html.haml
View file @
3f91c916
-
breadcrumb_title
"CI / CD Settings"
-
breadcrumb_title
"CI / CD Settings"
-
page_title
"CI / CD"
-
page_title
"CI / CD"
%h4
-
expanded
=
Rails
.
env
.
test?
=
_
(
'Secret variables'
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'ci/variables/README'
,
anchor:
'secret-variables'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
%p
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
=
render
"ci/variables/content"
.settings-header
%h4
=
render
'ci/variables/index'
,
save_endpoint:
group_variables_path
=
_
(
'Secret variables'
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'ci/variables/README'
,
anchor:
'secret-variables'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
%button
.btn.js-settings-toggle
=
expanded
?
'Collapse'
:
'Expand'
%p
.append-bottom-0
=
render
"ci/variables/content"
.settings-content
=
render
'ci/variables/index'
,
save_endpoint:
group_variables_path
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment