From 9f6d0d2d7d3b5ee8ea9b2ff2cdf9e7047bd1eded Mon Sep 17 00:00:00 2001 From: minkuk Date: Thu, 29 Sep 2016 08:42:55 +0000 Subject: [PATCH] volume --- app/helpers/volume_helper.rb | 4 +- app/views/volume/index.html.erb | 91 +++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+), 2 deletions(-) diff --git a/app/helpers/volume_helper.rb b/app/helpers/volume_helper.rb index 23af334..bd50689 100644 --- a/app/helpers/volume_helper.rb +++ b/app/helpers/volume_helper.rb @@ -13,7 +13,7 @@ module VolumeHelper html << "
" html << "
" # left title - html << "

Infomation #{volume['Volume Name']}

" + html << "

Infomation #{volume['Volume Name']}

" # right title html << "
" # buttons if volume["Mount State"] == "mounted" - html << " Unmount" + html << "" elsif volume["Status"] == " Started" html << "" html << "" diff --git a/app/views/volume/index.html.erb b/app/views/volume/index.html.erb index 9b89811..c52836a 100644 --- a/app/views/volume/index.html.erb +++ b/app/views/volume/index.html.erb @@ -241,3 +241,94 @@ $(document).on("click", "#mount_table_div .chupper", function(){ }) + + + + + + + + + + + + \ No newline at end of file