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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
9f7ec103
Commit
9f7ec103
authored
Apr 14, 2022
by
Diana Zubova
Committed by
Kushal Pandya
Apr 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate AutoDevops checkboxes to Pajamas
parent
cb0c29e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
app/views/projects/settings/ci_cd/_autodevops_form.html.haml
app/views/projects/settings/ci_cd/_autodevops_form.html.haml
+7
-10
No files found.
app/views/projects/settings/ci_cd/_autodevops_form.html.haml
View file @
9f7ec103
...
...
@@ -11,22 +11,19 @@
.row
.col-lg-12
=
form_for
@project
,
url:
project_settings_ci_cd_path
(
@project
,
anchor:
'autodevops-settings'
)
do
|
f
|
=
gitlab_ui_
form_for
@project
,
url:
project_settings_ci_cd_path
(
@project
,
anchor:
'autodevops-settings'
)
do
|
f
|
=
form_errors
(
@project
)
%fieldset
.builds-feature.js-auto-devops-settings
.form-group
=
f
.
fields_for
:auto_devops_attributes
,
@auto_devops
do
|
form
|
.card.auto-devops-card
.card-body
.form-check
=
form
.
check_box
:enabled
,
class:
'form-check-input js-toggle-extra-settings'
,
checked:
auto_devops_enabled
,
data:
{
qa_selector:
'enable_autodevops_checkbox'
}
=
form
.
label
:enabled
,
class:
'form-check-label'
do
%strong
=
s_
(
'CICD|Default to Auto DevOps pipeline'
)
-
if
auto_devops_enabled
=
gl_badge_tag
badge_for_auto_devops_scope
(
@project
),
{
variant: :info
},
{
class:
'js-instance-default-badge'
}
.form-text.text-muted
=
s_
(
'CICD|The Auto DevOps pipeline runs if no alternative CI configuration file is found.'
)
=
link_to
_
(
'Learn more.'
),
help_page_path
(
'topics/autodevops/index.md'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
-
autodevops_help_link
=
link_to
_
(
'Learn more.'
),
help_page_path
(
'topics/autodevops/index.md'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
-
auto_devops_badge
=
auto_devops_enabled
?
(
gl_badge_tag
badge_for_auto_devops_scope
(
@project
),
{
variant: :info
},
{
class:
'js-instance-default-badge gl-ml-3 gl-mt-n1'
})
:
''
=
form
.
gitlab_ui_checkbox_component
:enabled
,
(
s_
(
'CICD|Default to Auto DevOps pipeline'
)
+
auto_devops_badge
).
html_safe
,
checkbox_options:
{
class:
'js-toggle-extra-settings'
,
checked:
auto_devops_enabled
,
data:
{
qa_selector:
'enable_autodevops_checkbox'
}
},
help_text:
(
s_
(
'CICD|The Auto DevOps pipeline runs if no alternative CI configuration file is found.'
)
+
' '
+
autodevops_help_link
).
html_safe
.card-footer.js-extra-settings
{
class:
auto_devops_enabled
||
'hidden'
}
-
if
@project
.
all_clusters
.
empty?
%p
.settings-message.text-center
...
...
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