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
82430b2d
Commit
82430b2d
authored
May 24, 2018
by
Dennis Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
db30e7f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
app/controllers/projects/clusters_controller.rb
app/controllers/projects/clusters_controller.rb
+3
-4
app/views/projects/clusters/new.html.haml
app/views/projects/clusters/new.html.haml
+0
-1
No files found.
app/controllers/projects/clusters_controller.rb
View file @
82430b2d
...
@@ -83,18 +83,17 @@ class Projects::ClustersController < Projects::ApplicationController
...
@@ -83,18 +83,17 @@ class Projects::ClustersController < Projects::ApplicationController
redirect_to
project_cluster_path
(
project
,
@cluster
)
redirect_to
project_cluster_path
(
project
,
@cluster
)
else
else
generate_gcp_authorize_url
generate_gcp_authorize_url
active_tab
=
params
[
:type
]
case
params
[
:type
]
case
params
[
:type
]
when
'new'
when
'new'
@new_cluster
=
@cluster
@new_cluster
=
@cluster
tap_
existing_cluster
existing_cluster
when
'existing'
when
'existing'
@existing_cluster
=
@cluster
@existing_cluster
=
@cluster
tap_
new_cluster
new_cluster
end
end
render
:new
,
locals:
{
active_tab:
active_tab
}
render
:new
,
locals:
{
active_tab:
params
[
:type
]
}
end
end
end
end
...
...
app/views/projects/clusters/new.html.haml
View file @
82430b2d
-# TODO: Combine gcp/new and user/new views
-
breadcrumb_title
'Kubernetes'
-
breadcrumb_title
'Kubernetes'
-
page_title
_
(
"Kubernetes Cluster"
)
-
page_title
_
(
"Kubernetes Cluster"
)
-
active_tab
=
local_assigns
.
fetch
(
:active_tab
,
'new'
)
-
active_tab
=
local_assigns
.
fetch
(
:active_tab
,
'new'
)
...
...
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