From bfa4e5f9b7e1628b7aa2d13172a279bcac3917ad Mon Sep 17 00:00:00 2001 From: Youngkyun Kim Date: Fri, 2 Sep 2016 12:37:51 +0000 Subject: [PATCH] Update volume/index: add overlay and file manager --- app/controllers/volume_controller.rb | 2 +- app/views/home/index.html.erb | 36 ----- app/views/layouts/application.html.erb | 2 - app/views/volume/index.html.erb | 129 ++++++++++++++++-- .../gentelella/production/css/custom.css | 61 +++++++-- 5 files changed, 164 insertions(+), 66 deletions(-) diff --git a/app/controllers/volume_controller.rb b/app/controllers/volume_controller.rb index 0f07e3c..803cb84 100644 --- a/app/controllers/volume_controller.rb +++ b/app/controllers/volume_controller.rb @@ -5,7 +5,7 @@ class VolumeController < ApplicationController @volumes = Array.new volume = Hash.new - file_directory(@config["project_path"]) + file_directory("/mnt") if get_info.blank? flash[:danger] = "Check Server" diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 85379f5..211d322 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -149,46 +149,11 @@ - - @@ -259,7 +224,6 @@ $("#table_div").append(new_table); $('#datatable').dataTable(); - TableManageButtons.init(); } }) } diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 6974a21..e77d745 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -15,8 +15,6 @@
- - <% flash.each do |key, value| %>
<%= value %> × diff --git a/app/views/volume/index.html.erb b/app/views/volume/index.html.erb index 64ae10f..73d94da 100644 --- a/app/views/volume/index.html.erb +++ b/app/views/volume/index.html.erb @@ -1,4 +1,38 @@ -