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
96137d55
Commit
96137d55
authored
May 16, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/NegatedUnless offenses in HAML file
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
d799af10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/views/clusters/platforms/kubernetes/_form.html.haml
app/views/clusters/platforms/kubernetes/_form.html.haml
+4
-4
No files found.
app/views/clusters/platforms/kubernetes/_form.html.haml
View file @
96137d55
=
bootstrap_form_for
cluster
,
url:
update_cluster_url_path
,
html:
{
class:
'gl-show-field-errors'
},
=
bootstrap_form_for
cluster
,
url:
update_cluster_url_path
,
html:
{
class:
'gl-show-field-errors'
},
as: :cluster
do
|
field
|
as: :cluster
do
|
field
|
-
copy_name_btn
=
clipboard_button
(
text:
cluster
.
name
,
title:
s_
(
'ClusterIntegration|Copy Kubernetes cluster name'
),
-
copy_name_btn
=
clipboard_button
(
text:
cluster
.
name
,
title:
s_
(
'ClusterIntegration|Copy Kubernetes cluster name'
),
class:
'input-group-text btn-default'
)
unless
!
cluster
.
read_only_kubernetes_platform_fields?
class:
'input-group-text btn-default'
)
if
cluster
.
read_only_kubernetes_platform_fields?
=
field
.
text_field
:name
,
class:
'js-select-on-focus cluster-name'
,
required:
true
,
=
field
.
text_field
:name
,
class:
'js-select-on-focus cluster-name'
,
required:
true
,
title:
s_
(
'ClusterIntegration|Cluster name is required.'
),
title:
s_
(
'ClusterIntegration|Cluster name is required.'
),
readonly:
cluster
.
read_only_kubernetes_platform_fields?
,
readonly:
cluster
.
read_only_kubernetes_platform_fields?
,
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
=
field
.
fields_for
:platform_kubernetes
,
platform
do
|
platform_field
|
=
field
.
fields_for
:platform_kubernetes
,
platform
do
|
platform_field
|
-
copy_api_url
=
clipboard_button
(
text:
platform
.
api_url
,
title:
s_
(
'ClusterIntegration|Copy API URL'
),
-
copy_api_url
=
clipboard_button
(
text:
platform
.
api_url
,
title:
s_
(
'ClusterIntegration|Copy API URL'
),
class:
'input-group-text btn-default'
)
unless
!
cluster
.
read_only_kubernetes_platform_fields?
class:
'input-group-text btn-default'
)
if
cluster
.
read_only_kubernetes_platform_fields?
=
platform_field
.
text_field
:api_url
,
class:
'js-select-on-focus'
,
required:
true
,
=
platform_field
.
text_field
:api_url
,
class:
'js-select-on-focus'
,
required:
true
,
title:
s_
(
'ClusterIntegration|API URL should be a valid http/https url.'
),
title:
s_
(
'ClusterIntegration|API URL should be a valid http/https url.'
),
readonly:
cluster
.
read_only_kubernetes_platform_fields?
,
readonly:
cluster
.
read_only_kubernetes_platform_fields?
,
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
input_group_class:
'gl-field-error-anchor'
,
append:
copy_api_url
input_group_class:
'gl-field-error-anchor'
,
append:
copy_api_url
-
copy_ca_cert_btn
=
clipboard_button
(
text:
platform
.
ca_cert
,
title:
s_
(
'ClusterIntegration|Copy CA Certificate'
),
-
copy_ca_cert_btn
=
clipboard_button
(
text:
platform
.
ca_cert
,
title:
s_
(
'ClusterIntegration|Copy CA Certificate'
),
class:
'input-group-text btn-default'
)
unless
!
cluster
.
read_only_kubernetes_platform_fields?
class:
'input-group-text btn-default'
)
if
cluster
.
read_only_kubernetes_platform_fields?
=
platform_field
.
text_area
:ca_cert
,
class:
'js-select-on-focus'
,
rows:
'5'
,
=
platform_field
.
text_area
:ca_cert
,
class:
'js-select-on-focus'
,
rows:
'5'
,
readonly:
cluster
.
read_only_kubernetes_platform_fields?
,
readonly:
cluster
.
read_only_kubernetes_platform_fields?
,
placeholder:
s_
(
'ClusterIntegration|Certificate Authority bundle (PEM format)'
),
placeholder:
s_
(
'ClusterIntegration|Certificate Authority bundle (PEM format)'
),
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
-
show_token_btn
=
(
platform_field
.
button
s_
(
'ClusterIntegration|Show'
),
-
show_token_btn
=
(
platform_field
.
button
s_
(
'ClusterIntegration|Show'
),
type:
'button'
,
class:
'js-show-cluster-token btn btn-default'
)
type:
'button'
,
class:
'js-show-cluster-token btn btn-default'
)
-
copy_token_btn
=
clipboard_button
(
text:
platform
.
token
,
title:
s_
(
'ClusterIntegration|Copy Service Token'
),
-
copy_token_btn
=
clipboard_button
(
text:
platform
.
token
,
title:
s_
(
'ClusterIntegration|Copy Service Token'
),
class:
'input-group-text btn-default'
)
unless
!
cluster
.
read_only_kubernetes_platform_fields?
class:
'input-group-text btn-default'
)
if
cluster
.
read_only_kubernetes_platform_fields?
=
platform_field
.
text_field
:token
,
type:
'password'
,
class:
'js-select-on-focus js-cluster-token'
,
=
platform_field
.
text_field
:token
,
type:
'password'
,
class:
'js-select-on-focus js-cluster-token'
,
required:
true
,
title:
s_
(
'ClusterIntegration|Service token is required.'
),
required:
true
,
title:
s_
(
'ClusterIntegration|Service token is required.'
),
...
...
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