module VolumeHelper def volume_info(volume) params = ['Type', 'Volume ID', 'Status', 'Number of Bricks', 'Transport-type', 'Bricks', 'Options Reconfigured', 'Mount State', 'Mount Point'] html = '' html << "
" params.each do |t| next if volume[t].nil? html << "

" html << t + " : " + volume[t] html << "

" end html << "
" raw(html) end def mount_table(dir = @current_dir, id = "mount_table", class_option = "table table-striped table-bordered jambo_table") html = String.new html << "" html << "" html << "" html << "" html << "" #html << "" #html << "" html << "" html << "" html << "" html << "" html << "" html << "" html << "" html << "" #html << "" html << "" files(dir).each do |file| if file["auth"][0]=='d' html << "" html << "" html << "" html << "" end end html << "" html << "
NameauthSizeDate
" #html << "" html << " .." html << "
" html << " #{file['name']}" html << "#{file['auth']}" html << "" html << "
" hmtl << "" html << "" html << "
" html << "
" return html end end