Commit 3f91c916 authored by Dylan Griffith's avatar Dylan Griffith

Make group settings page have expandable menus (#10244)

parent 58aa2d7f
import initSettingsPanels from '~/settings_panels';
import AjaxVariableList from '~/ci_variable_list/ajax_variable_list';
document.addEventListener('DOMContentLoaded', () => {
// Initialize expandable settings panels
initSettingsPanels();
const variableListEl = document.querySelector('.js-ci-variable-list-section');
// eslint-disable-next-line no-new
new AjaxVariableList({
......
- breadcrumb_title "CI / CD Settings"
- page_title "CI / CD"
%h4
- expanded = Rails.env.test?
%section.settings.no-animate{ class: ('expanded' if expanded) }
.settings-header
%h4
= _('Secret variables')
= link_to icon('question-circle'), help_page_path('ci/variables/README', anchor: 'secret-variables'), target: '_blank', rel: 'noopener noreferrer'
%p
%button.btn.js-settings-toggle
= expanded ? 'Collapse' : 'Expand'
%p.append-bottom-0
= render "ci/variables/content"
= render 'ci/variables/index', save_endpoint: group_variables_path
.settings-content
= render 'ci/variables/index', save_endpoint: group_variables_path
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment