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
297f1669
Commit
297f1669
authored
Dec 07, 2017
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add route for `/admin/geo_nodes/new`
parent
a1f76904
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
config/routes/admin.rb
config/routes/admin.rb
+1
-1
ee/app/controllers/admin/geo_nodes_controller.rb
ee/app/controllers/admin/geo_nodes_controller.rb
+5
-1
No files found.
config/routes/admin.rb
View file @
297f1669
...
...
@@ -127,7 +127,7 @@ namespace :admin do
get
:download
,
on: :member
end
resources
:geo_nodes
,
only:
[
:index
,
:create
,
:edit
,
:update
,
:destroy
]
do
resources
:geo_nodes
,
only:
[
:index
,
:create
,
:
new
,
:
edit
,
:update
,
:destroy
]
do
member
do
post
:repair
post
:toggle
...
...
ee/app/controllers/admin/geo_nodes_controller.rb
View file @
297f1669
...
...
@@ -22,10 +22,14 @@ class Admin::GeoNodesController < Admin::ApplicationController
else
@nodes
=
GeoNode
.
all
render
:
index
render
:
new
end
end
def
new
@node
=
GeoNode
.
new
end
def
update
if
Geo
::
NodeUpdateService
.
new
(
@node
,
geo_node_params
).
execute
redirect_to
admin_geo_nodes_path
,
notice:
'Node was successfully updated.'
...
...
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