From 5a6c4d367cf6d991f6e58b3f183c5d6e351379b2 Mon Sep 17 00:00:00 2001 From: bee0005 Date: Fri, 2 Sep 2016 06:18:45 +0000 Subject: [PATCH] update --- app/controllers/home_controller.rb | 3 ++- app/views/home/index.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 3e1f3c5..26db170 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,7 +1,8 @@ class HomeController < ApplicationController def index config = get_conf - @current_dir = config["project_path"] +# @current_dir = config["project_path"] + @current_dir = `~` file_directory(@current_dir) end end diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index bff5c0f..05b375b 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -108,7 +108,7 @@ - .. + .. @@ -118,7 +118,7 @@ <% if t["auth"][0]=='d'%> - ')"><%=t["name"]%> + ')"> <%=t["name"]%> <% else %>