diff --git a/app/helpers/home_helper.rb b/app/helpers/home_helper.rb index 4d12ede..a160a17 100644 --- a/app/helpers/home_helper.rb +++ b/app/helpers/home_helper.rb @@ -119,14 +119,17 @@ module HomeHelper html << "" html << "" + nodes = Node.all get_df.each_with_index do |file, index| # show mounted files only + ip = file['Filesystem'].split(":").first + next if nodes.select{|node| node["host_ip"].eql? ip}.length == 0 color = ['blue', 'green', 'red', 'purple', 'grey'][index % 5] html << "" html << "
" html << "

" - html << file['Filesystem'] + html << file['Mounted on'] html << "

" html << "" html << "
" diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 868827b..f2c7ca6 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -352,7 +352,6 @@