From aea0941329430b826e82cce1a7f20ed395195aec Mon Sep 17 00:00:00 2001 From: minkuk Date: Wed, 28 Sep 2016 08:41:13 +0000 Subject: [PATCH] up --- app/helpers/volume_helper.rb | 48 ++++++++++++++++++++++++++++++++- app/views/volume/index.html.erb | 33 +---------------------- 2 files changed, 48 insertions(+), 33 deletions(-) diff --git a/app/helpers/volume_helper.rb b/app/helpers/volume_helper.rb index 50ecdb7..6c78e3f 100644 --- a/app/helpers/volume_helper.rb +++ b/app/helpers/volume_helper.rb @@ -13,4 +13,50 @@ module VolumeHelper html << "" raw(html) end -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 \ No newline at end of file diff --git a/app/views/volume/index.html.erb b/app/views/volume/index.html.erb index 6c0fea4..c0301dd 100644 --- a/app/views/volume/index.html.erb +++ b/app/views/volume/index.html.erb @@ -69,38 +69,7 @@