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
642cb9a0
Commit
642cb9a0
authored
Jul 27, 2021
by
Kev
Committed by
Jacques Erasmus
Jul 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate clusters integrations checkbox to gitlab_ui_checkbox_component
parent
64ada62a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
app/views/clusters/clusters/_integrations.html.haml
app/views/clusters/clusters/_integrations.html.haml
+12
-14
No files found.
app/views/clusters/clusters/_integrations.html.haml
View file @
642cb9a0
...
...
@@ -5,25 +5,23 @@
.settings-content
#integrations-settings-section
-
if
can?
(
current_user
,
:admin_cluster
,
@cluster
)
.sub-section.form-group
=
form_for
@prometheus_integration
,
as: :integration
,
namespace: :prometheus
,
url:
@cluster
.
integrations_path
,
method: :post
,
html:
{
class:
'js-cluster-integrations-form'
}
do
|
prometheus_form
|
=
gitlab_ui_
form_for
@prometheus_integration
,
as: :integration
,
namespace: :prometheus
,
url:
@cluster
.
integrations_path
,
method: :post
,
html:
{
class:
'js-cluster-integrations-form'
}
do
|
prometheus_form
|
=
prometheus_form
.
hidden_field
:application_type
.form-group.gl-form-group
.gl-form-checkbox.custom-control.custom-checkbox
=
prometheus_form
.
check_box
:enabled
,
class:
'custom-control-input'
=
prometheus_form
.
label
:enabled
,
s_
(
'ClusterIntegration|Enable Prometheus integration'
),
class:
'custom-control-label'
.form-text.text-gl-muted
=
s_
(
'ClusterIntegration|Allows GitLab to query a specifically configured in-cluster Prometheus for metrics.'
)
=
link_to
_
(
'More information.'
),
help_page_path
(
"user/clusters/integrations"
,
anchor:
"prometheus-cluster-integration"
),
target:
'_blank'
-
help_text
=
s_
(
'ClusterIntegration|Allows GitLab to query a specifically configured in-cluster Prometheus for metrics.'
)
-
help_link
=
link_to
(
_
(
'More information.'
),
help_page_path
(
"user/clusters/integrations"
,
anchor:
"prometheus-cluster-integration"
),
target:
'_blank'
,
rel:
'noopener noreferrer'
)
=
prometheus_form
.
gitlab_ui_checkbox_component
:enabled
,
s_
(
'ClusterIntegration|Enable Prometheus integration'
),
help_text:
'%{help_text} %{help_link}'
.
html_safe
%
{
help_text:
help_text
,
help_link:
help_link
}
=
prometheus_form
.
submit
_
(
'Save changes'
),
class:
'btn gl-button btn-success'
.sub-section.form-group
=
form_for
@elastic_stack_integration
,
as: :integration
,
namespace: :elastic_stack
,
url:
@cluster
.
integrations_path
,
method: :post
,
html:
{
class:
'js-cluster-integrations-form'
}
do
|
elastic_stack_form
|
=
gitlab_ui_
form_for
@elastic_stack_integration
,
as: :integration
,
namespace: :elastic_stack
,
url:
@cluster
.
integrations_path
,
method: :post
,
html:
{
class:
'js-cluster-integrations-form'
}
do
|
elastic_stack_form
|
=
elastic_stack_form
.
hidden_field
:application_type
.form-group.gl-form-group
.gl-form-checkbox.custom-control.custom-checkbox
=
elastic_stack_form
.
check_box
:enabled
,
class:
'custom-control-input'
=
elastic_stack_form
.
label
:enabled
,
s_
(
'ClusterIntegration|Enable Elastic Stack integration'
),
class:
'custom-control-label'
.form-text.text-gl-muted
=
s_
(
'ClusterIntegration|Allows GitLab to query a specifically configured in-cluster Elasticsearch for pod logs.'
)
=
link_to
_
(
'More information.'
),
help_page_path
(
"user/clusters/integrations"
,
anchor:
"elastic-stack-cluster-integration"
),
target:
'_blank'
-
help_text
=
s_
(
'ClusterIntegration|Allows GitLab to query a specifically configured in-cluster Elasticsearch for pod logs.'
)
-
help_link
=
link_to
(
_
(
'More information.'
),
help_page_path
(
"user/clusters/integrations"
,
anchor:
"elastic-stack-cluster-integration"
),
target:
'_blank'
,
rel:
'noopener noreferrer'
)
=
elastic_stack_form
.
gitlab_ui_checkbox_component
:enabled
,
s_
(
'ClusterIntegration|Enable Elastic Stack integration'
),
help_text:
'%{help_text} %{help_link}'
.
html_safe
%
{
help_text:
help_text
,
help_link:
help_link
}
=
elastic_stack_form
.
submit
_
(
'Save changes'
),
class:
'btn gl-button btn-success'
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