gluster-web-interface/app/helpers/volume_helper.rb

17 lines
466 B
Ruby
Raw Normal View History

2016-08-22 09:41:25 +00:00
module VolumeHelper
2016-09-20 12:13:24 +00:00
def volume_info(volume)
2016-09-23 09:28:53 +00:00
params = ['Type', 'Volume ID', 'Status', 'Number of Bricks', 'Transport-type', 'Bricks', 'Options Reconfigured', 'Mount State', 'Mount Point']
2016-09-20 12:13:24 +00:00
html = ''
html << "<div>"
params.each do |t|
next if volume[t].nil?
html << "<p>"
html << t + " : " + volume[t]
html << "</p>"
end
html << "</div>"
raw(html)
end
2016-08-22 09:41:25 +00:00
end