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
11fd6ccc
Commit
11fd6ccc
authored
Oct 29, 2021
by
Anna Vovchenko
Committed by
Nicolò Maria Mezzopera
Oct 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Persistent URLs for the new cluster page tabs
parent
d257c85b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
app/views/clusters/clusters/new.html.haml
app/views/clusters/clusters/new.html.haml
+19
-19
No files found.
app/views/clusters/clusters/new.html.haml
View file @
11fd6ccc
-
breadcrumb_title
_
(
'Kubernetes'
)
-
page_title
_
(
'Kubernetes Cluster'
)
-
active_tab
=
local_assigns
.
fetch
(
:active_tab
,
'create'
)
-
provider
=
params
[
:provider
]
-
active_tab
=
params
[
:tab
]
||
local_assigns
.
fetch
(
:active_tab
,
'create'
)
-
is_active_tab_create
=
active_tab
===
'create'
-
is_active_tab_add
=
active_tab
===
'add'
=
render_gcp_signup_offer
.row.gl-mt-3
.col-md-3
=
render
'sidebar'
.col-md-9.js-toggle-container
%ul
.nav-links.nav-tabs.gitlab-tabs.nav
{
role:
'tablist'
}
%li
.nav-item
{
role:
'presentation'
}
%a
.nav-link
{
href:
'#create-cluster-pane'
,
id:
'create-cluster-tab'
,
class:
active_when
(
active_tab
==
'create'
),
data:
{
toggle:
'tab'
},
role:
'tab'
}
%span
=
create_new_cluster_label
(
provider:
params
[
:provider
])
%li
.nav-item
{
role:
'presentation'
}
%a
.nav-link
{
href:
'#add-cluster-pane'
,
id:
'add-cluster-tab'
,
class:
active_when
(
active_tab
==
'add'
),
data:
{
toggle:
'tab'
,
qa_selector:
'add_existing_cluster_tab'
},
role:
'tab'
}
%span
=
s_
(
'ClusterIntegration|Connect existing cluster'
)
.col-md-9
=
gl_tabs_nav
({
class:
'nav-justified'
})
do
=
gl_tab_link_to
clusterable
.
new_path
(
tab:
'create'
),
{
item_active:
is_active_tab_create
}
do
%span
=
create_new_cluster_label
(
provider:
params
[
:provider
])
=
gl_tab_link_to
s_
(
'ClusterIntegration|Connect existing cluster'
),
clusterable
.
new_path
(
tab:
'add'
),
{
item_active:
is_active_tab_add
,
qa_selector:
'add_existing_cluster_tab'
}
.tab-content.gitlab-tab-content
.tab-pane.p-0
{
id:
'create-cluster-pane'
,
class:
active_when
(
active_tab
==
'create'
),
role:
'tabpanel'
}
=
render
'clusters/clusters/cloud_providers/cloud_provider_selector'
.tab-content
-
if
is_active_tab_create
.tab-pane.active
{
role:
'tabpanel'
}
=
render
'clusters/clusters/cloud_providers/cloud_provider_selector'
-
if
[
'aws'
,
'gcp'
].
include?
(
provider
)
.p-3.border-top
=
render
"clusters/clusters/
#{
provider
}
/new"
-
if
[
'aws'
,
'gcp'
].
include?
(
provider
)
.p-3.border-top
=
render
"clusters/clusters/
#{
provider
}
/new"
.tab-pane
{
id:
'add-cluster-pane'
,
class:
active_when
(
active_tab
==
'add'
),
role:
'tabpanel'
}
#js-cluster-new
{
data:
js_cluster_new
}
=
render
'clusters/clusters/user/form'
-
if
is_active_tab_add
.tab-pane.active.gl-p-5
{
role:
'tabpanel'
}
#js-cluster-new
{
data:
js_cluster_new
}
=
render
'clusters/clusters/user/form'
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