diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 0a0a93f..db49794 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -2,7 +2,6 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
# protect_from_forgery with: :exception
- helper_method :volume_mount, :volume_unmount, :volume_create, :volume_delete, :volume_start, :volume_stop
def get_conf
@config = Hash.new
diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb
new file mode 100644
index 0000000..fde0bb2
--- /dev/null
+++ b/app/controllers/node_controller.rb
@@ -0,0 +1,15 @@
+class NodeController < ApplicationController
+ def index
+ @hosts = Array.new
+
+ if get_hosts.blank?
+ flash[:danger] = "Check Server"
+ else
+ @hosts = get_hosts
+ end
+ end
+
+ def get_hosts
+ return ['2', 'aaa', 'bbb', 'ccc']
+ end
+end
diff --git a/app/controllers/peer_controller.rb b/app/controllers/peer_controller.rb
deleted file mode 100644
index dbc890a..0000000
--- a/app/controllers/peer_controller.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-class PeerController < ApplicationController
- def index
- @hosts = Array.new
-
- if get_hosts.blank?
- flash[:danger] = "Check Server"
- else
- @hosts = get_hosts
-
- end
- end
-
- def get_hosts
- file_str = `cat ` + @hostfile_path
- hosts_str = file_str.split("hosts:")[1]
- return hosts_str.split("\n")
- end
-
- @hostfile_path = "../../../configure.conf"
-end
diff --git a/app/helpers/volumn_helper.rb b/app/helpers/volumn_helper.rb
deleted file mode 100644
index 70f2631..0000000
--- a/app/helpers/volumn_helper.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-module VolumnHelper
-end
diff --git a/app/views/node/index.html.erb b/app/views/node/index.html.erb
new file mode 100644
index 0000000..edcd1bb
--- /dev/null
+++ b/app/views/node/index.html.erb
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
Hover rows Try hovering over the rows
+
+
+
+
+
+
+
+ #
+ Host Name
+ IP Address
+ Status
+ UUID
+
+
+
+ <%@hosts.each do |t|%>
+
+ 1
+ Mark
+ Otto
+ @mdo
+ tmp
+
+ <%end%>
+
+
+
+
+
+
+
+
diff --git a/app/views/partials/_sidenav.html.erb b/app/views/partials/_sidenav.html.erb
index 04bb361..7eab2f1 100644
--- a/app/views/partials/_sidenav.html.erb
+++ b/app/views/partials/_sidenav.html.erb
@@ -27,17 +27,7 @@
Node
diff --git a/app/views/peer/index.html.erb b/app/views/peer/index.html.erb
deleted file mode 100644
index 2ab1d22..0000000
--- a/app/views/peer/index.html.erb
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Hover rows Try hovering over the rows
-
-
-
-
-
-
-
- #
- Host Name
- IP Address
- Status
- UUID
-
-
-
-
- <%@hosts.each do |t|%>
-
-
- 1
- Mark
- Otto
- @mdo
-
-
- <%end%>
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/views/volume/index.html.erb b/app/views/volume/index.html.erb
index 0e5095a..ae1a795 100644
--- a/app/views/volume/index.html.erb
+++ b/app/views/volume/index.html.erb
@@ -93,10 +93,10 @@
select
-
-
- <%end%>
- <%end%>
+
+
+ <%end%>
+ <%end%>
@@ -169,7 +169,7 @@
Stop
- Mount
+ Mount
<% else %>
@@ -221,7 +221,7 @@
var new_tr = "";
new_tr += " ";
new_tr += " .. ";
- new_tr += " ";
+ new_tr += " ";
for( var i = 0; i < result.file.length; i++){
if(result.file[i].auth[0] != "d") continue;
var row_class = i % 2 == 0 ? 'odd' : 'even';
diff --git a/config/routes.rb b/config/routes.rb
index c3e6156..8628d14 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -26,8 +26,8 @@ Rails.application.routes.draw do
get 'volume/stop/:volume_name' => "volume#volume_stop"
get 'volume/delete/:volume_name' => "volume#volume_delete"
- #Peer
- get 'peer/index' => 'peer#index'
+ #Node
+ get 'node/index' => 'node#index'