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 << file['Filesystem'] + html << file['Mounted on'] html << "