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
ca01d616
Commit
ca01d616
authored
Dec 15, 2021
by
jejacks0n
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds new unchecked free indicator variant
- Also identifies and fixes an issue with nesting of the elements
parent
07ba9510
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
9 deletions
+28
-9
app/views/projects/_new_project_fields.html.haml
app/views/projects/_new_project_fields.html.haml
+28
-9
No files found.
app/views/projects/_new_project_fields.html.haml
View file @
ca01d616
...
...
@@ -74,25 +74,44 @@
=
s_
(
'ProjectsNew|Allows you to immediately clone this project’s repository. Skip this if you plan to push up an existing repository.'
)
-
experiment
(
:new_project_sast_enabled
,
user:
current_user
)
do
|
e
|
-
e
.
try
(
:candidate
)
do
.form-group
.form-check.gl-mb-3
-
e
.
try
(
:candidate
)
do
=
check_box_tag
'project[initialize_with_sast]'
,
'1'
,
true
,
class:
'form-check-input'
,
data:
{
qa_selector:
'initialize_with_sast_checkbox'
,
track_experiment:
e
.
name
,
track_label:
track_label
,
track_action:
'activate_form_input'
,
track_property:
'init_with_sast'
}
=
label_tag
'project[initialize_with_sast]'
,
class:
'form-check-label'
do
=
s_
(
'ProjectsNew|Enable Static Application Security Testing (SAST)'
)
.form-text.text-muted
=
s_
(
'ProjectsNew|Analyze your source code for known security vulnerabilities.'
)
=
link_to
_
(
'Learn more.'
),
help_page_path
(
'user/application_security/sast/index'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
,
data:
{
track_action:
'followed'
,
track_experiment:
e
.
name
}
-
e
.
try
(
:unchecked_candidate
)
do
.form-group
.form-check.gl-mb-3
=
check_box_tag
'project[initialize_with_sast]'
,
'1'
,
false
,
class:
'form-check-input'
,
data:
{
qa_selector:
'initialize_with_sast_checkbox'
,
track_experiment:
e
.
name
,
track_label:
track_label
,
track_action:
'activate_form_input'
,
track_property:
'init_with_sast'
}
=
label_tag
'project[initialize_with_sast]'
,
class:
'form-check-label'
do
=
s_
(
'ProjectsNew|Enable Static Application Security Testing (SAST)'
)
.form-text.text-muted
=
s_
(
'ProjectsNew|Analyze your source code for known security vulnerabilities.'
)
=
link_to
_
(
'Learn more.'
),
help_page_path
(
'user/application_security/sast/index'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
,
data:
{
track_action:
'followed'
,
track_experiment:
e
.
name
}
-
e
.
try
(
:free_indicator
)
do
.form-group
.form-check.gl-mb-3
=
check_box_tag
'project[initialize_with_sast]'
,
'1'
,
true
,
class:
'form-check-input'
,
data:
{
qa_selector:
'initialize_with_sast_checkbox'
,
track_experiment:
e
.
name
,
track_label:
track_label
,
track_action:
'activate_form_input'
,
track_property:
'init_with_sast'
}
=
label_tag
'project[initialize_with_sast]'
,
class:
'form-check-label'
do
=
s_
(
'ProjectsNew|Enable Static Application Security Testing (SAST)'
)
%span
.badge.badge-info.badge-pill.gl-badge.sm
=
_
(
'Free'
)
-
e
.
try
(
:unchecked_candidate
)
do
.form-text.text-muted
=
s_
(
'ProjectsNew|Analyze your source code for known security vulnerabilities.'
)
=
link_to
_
(
'Learn more.'
),
help_page_path
(
'user/application_security/sast/index'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
,
data:
{
track_action:
'followed'
,
track_experiment:
e
.
name
}
-
e
.
try
(
:unchecked_free_indicator
)
do
.form-group
.form-check.gl-mb-3
=
check_box_tag
'project[initialize_with_sast]'
,
'1'
,
false
,
class:
'form-check-input'
,
data:
{
qa_selector:
'initialize_with_sast_checkbox'
,
track_experiment:
e
.
name
,
track_label:
track_label
,
track_action:
'activate_form_input'
,
track_property:
'init_with_sast'
}
=
label_tag
'project[initialize_with_sast]'
,
class:
'form-check-label'
do
=
s_
(
'ProjectsNew|Enable Static Application Security Testing (SAST)'
)
%span
.badge.badge-info.badge-pill.gl-badge.sm
=
_
(
'Free'
)
.form-text.text-muted
=
s_
(
'ProjectsNew|Analyze your source code for known security vulnerabilities.'
)
=
link_to
_
(
'Learn more.'
),
help_page_path
(
'user/application_security/sast/index'
),
target:
'_blank'
,
rel:
'noopener noreferrer'
,
data:
{
track_action:
'followed'
,
track_experiment:
e
.
name
}
=
f
.
submit
_
(
'Create project'
),
class:
"btn gl-button btn-confirm"
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_action:
"click_button"
,
track_property:
"create_project"
,
track_value:
""
}
=
link_to
_
(
'Cancel'
),
dashboard_projects_path
,
class:
'btn gl-button btn-default btn-cancel'
,
data:
{
track_label:
"
#{
track_label
}
"
,
track_action:
"click_button"
,
track_property:
"cancel"
,
track_value:
""
}
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