From 02e70e767dfb8e42f4aae6ed5bd1d9bcdfe757fb Mon Sep 17 00:00:00 2001 From: kyg516 Date: Mon, 3 Oct 2016 14:20:56 +0900 Subject: [PATCH] Add disk file table --- app/helpers/home_helper.rb | 2 ++ app/views/home/index.html.erb | 32 +++++++++++++++++++++++--------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/app/helpers/home_helper.rb b/app/helpers/home_helper.rb index bd2c53b..4595353 100644 --- a/app/helpers/home_helper.rb +++ b/app/helpers/home_helper.rb @@ -94,4 +94,6 @@ module HomeHelper return html end + def html_disk_file_table + end end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index e6defb1..5ee5a21 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -134,8 +134,8 @@
-
-
+
+

Nodes Status

-
+
Ping Connections / Total Node @@ -240,8 +240,9 @@
-
-
+ +
+

Nodes List

-
+
    - + <% nodes = ssh_nodes %> <% nodes.each do |node| %>
  • @@ -287,6 +288,20 @@
+ + +
+
+
+

Disk usage

+
+
+ <%= raw html_disk_file_table %> +
+
+
+ +
@@ -460,7 +475,7 @@ $(document).on("click", "#file_manager_div .chupper", function(){ draw_datatable(); draw_chart(result.du); //Pace.stop(); - + //check_divheight(); $(location).attr('href',"#"); } @@ -496,4 +511,3 @@ $(document).on("click", "#file_manager_div .rmdir", function(){ }) -