From 73209faf54dee83bb22b0a60edf077cc8e34be10 Mon Sep 17 00:00:00 2001 From: bee0005 Date: Mon, 3 Oct 2016 10:19:05 +0000 Subject: [PATCH] update --- app/views/node/detail.html.erb | 497 ++++++++++++++++----------------- app/views/node/index.html.erb | 302 +++++++++----------- 2 files changed, 377 insertions(+), 422 deletions(-) diff --git a/app/views/node/detail.html.erb b/app/views/node/detail.html.erb index 60e9837..20b482f 100644 --- a/app/views/node/detail.html.erb +++ b/app/views/node/detail.html.erb @@ -6,280 +6,259 @@
+ <% nodes = ssh_nodes %>
-
-
-

Add Node

- -
-
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-
- - -
-
-
-
-
-
-
-
-
-

Node List

- -
-
-
- -
-
-
- -
-
-
-
-
-

Node List

- -
-
- <% nodes = ssh_nodes %> -
- - - - - - - - - - - - - <% nodes.each do |node| %> - - <% if node["ping"].eql? "true" %> - - <% else %> - - <% end %> - <% if node["gluster"].eql? "on" %> - - <% else %> - - <% end %> - - - - - - <% end %> - -
PingStatusHost NameHost IPUser Name
Attached Not operational "><%= node["host_name"] %><%= node["host_ip"] %><%= node["user_name"] %>">
-
-
-
-
-
-
-

Node Detail

- -
-
-
- <% nodes.each do |node| %> - <% if (node["id"].to_s).eql?(@node_id.to_s)%> -
- "/> - -
- -
- <% if node["ping"].eql? "true" %> - - <% else %> - - <% end %> - -
+
+
+
+

Add Node

+ +
+
+
+ +
+ +
+
- <% if node["ping"].eql? "true" %> +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+ + +
+
+ +
+
+
+
+
+
+

Node List

+ +
+
+
+ + + + + + + + + + + + + <% nodes.each do |node| %> + + <% if node["ping"].eql? "true" %> + + <% else %> + + <% end %> + <% if node["gluster"].eql? "on" %> + + <% else %> + + <% end %> + + + + + + <% end %> + +
PingStatusHost NameHost IPUser Name
Attached Not operational "><%= node["host_name"] %><%= node["host_ip"] %><%= node["user_name"] %>">
+
+
+
+
+
+
+
+
+

Node Detail

+ +
+
+
+ <% nodes.each do |node| %> + <% if (node["id"].to_s).eql?(@node_id.to_s)%> +
+ "/> +
- +
- <% if node["ssh"].eql? "on" %> - - <% else %> - - <% end %> - + <% if node["ping"].eql? "true" %> + + <% else %> + + <% end %> +
-
- -
- <% if node["gluster"].eql? "on" %> - - <% else %> - - <% end %> - -
-
- - <% if node["ssh"].eql?("on") && node["gluster"].eql?("on")%> + <% if node["ping"].eql? "true" %>
- +
- + <% if node["ssh"].eql? "on" %> + + <% else %> + + <% end %> +
- <%end%> +
+ +
+ <% if node["gluster"].eql? "on" %> + + <% else %> + + <% end %> + +
+
+ + <% if node["ssh"].eql?("on") && node["gluster"].eql?("on")%> +
+ +
+ +
+
+ <%end%> + <% end %> + + +
+ +
+ " class="form-control col-md-7 col-xs-12" data-validate-length-range="10" data-validate-words="1" name="host_name" placeholder="Host Name" required="required" type="text" + data-toggle="tooltip" data-placement="top" title="Put node's representative name"> +
+
+
+ +
+ " class="form-control col-md-7 col-xs-12" data-validate-length-range="10" data-validate-words="1" name="host_ip" placeholder="127.0.0.1" required="required" type="text" + data-toggle="tooltip" data-placement="top" title="Put node's ip"> +
+
+
+ +
+ " type="text" name="user_name" placeholder="root" required="required" data-validate-length-range="5,20" class="form-control col-md-7 col-xs-12" + data-toggle="tooltip" data-placement="top" title="Put user name for ssh connection. client must have ssh key"> +
+
+
+ +
+ " type="password" name="user_password" placeholder="secret" data-validate-length="1,10" class="form-control col-md-7 col-xs-12" required="required" + data-toggle="tooltip" data-placement="top" title="Put user password for ssh connection. client must have ssh key"> +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+
+
+ +
+
+
<% end %> - - -
- -
- " class="form-control col-md-7 col-xs-12" data-validate-length-range="10" data-validate-words="1" name="host_name" placeholder="Host Name" required="required" type="text" - data-toggle="tooltip" data-placement="top" title="Put node's representative name"> -
-
-
- -
- " class="form-control col-md-7 col-xs-12" data-validate-length-range="10" data-validate-words="1" name="host_ip" placeholder="127.0.0.1" required="required" type="text" - data-toggle="tooltip" data-placement="top" title="Put node's ip"> -
-
-
- -
- " type="text" name="user_name" placeholder="root" required="required" data-validate-length-range="5,20" class="form-control col-md-7 col-xs-12" - data-toggle="tooltip" data-placement="top" title="Put user name for ssh connection. client must have ssh key"> -
-
-
- -
- " type="password" name="user_password" placeholder="secret" data-validate-length="1,10" class="form-control col-md-7 col-xs-12" required="required" - data-toggle="tooltip" data-placement="top" title="Put user password for ssh connection. client must have ssh key"> -
-
-
- -
- -
-
-
- -
- -
-
- -
-
-
- -
-
- <% end %> - <% end %> +
-
+
+
+
diff --git a/app/views/node/index.html.erb b/app/views/node/index.html.erb index b5d6bdb..96051b4 100644 --- a/app/views/node/index.html.erb +++ b/app/views/node/index.html.erb @@ -6,180 +6,156 @@
+ <% nodes = ssh_nodes %>
-
-
-
-

Add Node

- -
-
-
-
-
- -
- +
+
+
+
+

Add Node

+ +
+
+
+ +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
-
- -
- +
+ +
+ +
-
- -
-
- - + +
+
+ + +
-
- -
-
-
-
-
-
-

Node List

- -
-
-
-
-
-

This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.

-
+
-
+
+
+
+

Node List

+ +
+
+
+ + + + + + + + + + + + + <% nodes.each do |node| %> + + <% if node["ping"].eql? "true" %> + + <% else %> + + <% end %> + <% if node["gluster"].eql? "on" %> + + <% else %> + + <% end %> + + + + + + <% end %> + +
PingStatusHost NameHost IPUser Name
Attached Not operational "><%= node["host_name"] %><%= node["host_ip"] %><%= node["user_name"] %>">
+
+
+
+
+
+
+
+
+

Node Detail Click host name

+ +
+
+
+ +
+
+
+
-
-
-
-

Node List

- -
-
- <% nodes = ssh_nodes %> -
- - - - - - - - - - - - - <% nodes.each do |node| %> - - <% if node["ping"].eql? "true" %> - - <% else %> - - <% end %> - <% if node["gluster"].eql? "on" %> - - <% else %> - - <% end %> - - - - - - <% end %> - -
PingStatusHost NameHost IPUser Name
Attached Not operational "><%= node["host_name"] %><%= node["host_ip"] %><%= node["user_name"] %>">
-
-
-
-
-
-
-

Node Detail Click host name

- -
-
-
- -
-
-