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
69594bdb
Commit
69594bdb
authored
Apr 08, 2022
by
PaytonBurdette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate sourcegraph checkboxes
Migrate the checkboxes to use gitlab-ui styles. Changelog: changed
parent
2dae593a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
app/views/admin/application_settings/_sourcegraph.html.haml
app/views/admin/application_settings/_sourcegraph.html.haml
+3
-9
No files found.
app/views/admin/application_settings/_sourcegraph.html.haml
View file @
69594bdb
...
@@ -16,20 +16,14 @@
...
@@ -16,20 +16,14 @@
.settings-content
.settings-content
=
form_for
@application_setting
,
url:
general_admin_application_settings_path
(
anchor:
'js-sourcegraph-settings'
),
html:
{
class:
'fieldset-form'
,
id:
'sourcegraph-settings'
}
do
|
f
|
=
gitlab_ui_
form_for
@application_setting
,
url:
general_admin_application_settings_path
(
anchor:
'js-sourcegraph-settings'
),
html:
{
class:
'fieldset-form'
,
id:
'sourcegraph-settings'
}
do
|
f
|
=
form_errors
(
@application_setting
)
=
form_errors
(
@application_setting
)
%fieldset
%fieldset
.form-group
.form-group
.form-check
=
f
.
gitlab_ui_checkbox_component
:sourcegraph_enabled
,
s_
(
'SourcegraphAdmin|Enable Sourcegraph'
)
=
f
.
check_box
:sourcegraph_enabled
,
class:
'form-check-input'
=
f
.
label
:sourcegraph_enabled
,
s_
(
'SourcegraphAdmin|Enable Sourcegraph'
),
class:
'form-check-label'
.form-group
.form-group
.form-check
=
f
.
gitlab_ui_checkbox_component
:sourcegraph_public_only
,
s_
(
'SourcegraphAdmin|Block on private and internal projects'
),
help_text:
s_
(
'SourcegraphAdmin|Only public projects have code intelligence enabled and communicate with Sourcegraph.'
)
=
f
.
check_box
:sourcegraph_public_only
,
class:
'form-check-input'
=
f
.
label
:sourcegraph_public_only
,
s_
(
'SourcegraphAdmin|Block on private and internal projects'
),
class:
'form-check-label'
.form-text.text-muted
=
s_
(
'SourcegraphAdmin|Only public projects have code intelligence enabled and communicate with Sourcegraph.'
)
.form-group
.form-group
=
f
.
label
:sourcegraph_url
,
s_
(
'SourcegraphAdmin|Sourcegraph URL'
),
class:
'label-bold'
=
f
.
label
:sourcegraph_url
,
s_
(
'SourcegraphAdmin|Sourcegraph URL'
),
class:
'label-bold'
=
f
.
text_field
:sourcegraph_url
,
class:
'form-control gl-form-input'
,
placeholder:
s_
(
'SourcegraphAdmin|https://sourcegraph.example.com'
)
=
f
.
text_field
:sourcegraph_url
,
class:
'form-control gl-form-input'
,
placeholder:
s_
(
'SourcegraphAdmin|https://sourcegraph.example.com'
)
...
...
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