Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
app/assets/javascripts/pages/groups/settings/ci_cd/show/index.js
...ets/javascripts/pages/groups/settings/ci_cd/show/index.js
+4
-0
app/views/groups/settings/ci_cd/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?
%section
.settings.no-animate
{
class:
(
'expanded'
if
expanded
)
}
.settings-header
%h4
=
_
(
'Secret variables'
)
=
_
(
'Secret variables'
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'ci/variables/README'
,
anchor:
'secret-variables'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'ci/variables/README'
,
anchor:
'secret-variables'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
%button
.btn.js-settings-toggle
%p
=
expanded
?
'Collapse'
:
'Expand'
%p
.append-bottom-0
=
render
"ci/variables/content"
=
render
"ci/variables/content"
.settings-content
=
render
'ci/variables/index'
,
save_endpoint:
group_variables_path
=
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