This commit is contained in:
bee0005 2016-09-02 06:18:45 +00:00
parent d8f6856d70
commit 5a6c4d367c
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
class HomeController < ApplicationController class HomeController < ApplicationController
def index def index
config = get_conf config = get_conf
@current_dir = config["project_path"] # @current_dir = config["project_path"]
@current_dir = `~`
file_directory(@current_dir) file_directory(@current_dir)
end end
end end

View File

@ -108,7 +108,7 @@
<tbody id="tbody_volume1"> <tbody id="tbody_volume1">
<tr> <tr>
<td><i class="fa fa-reply"></i> <td><i class="fa fa-reply"></i>
<a onclick="change_upper('<%=@current_dir%>')"> ..</a> <a onclick="change_upper('<%=@current_dir%>')"> ..</a>
</td> </td>
<td></td> <td></td>
<td></td> <td></td>
@ -118,7 +118,7 @@
<tr> <tr>
<% if t["auth"][0]=='d'%> <% if t["auth"][0]=='d'%>
<td style="color:#0d8ade;"><i class="fa fa-folder-open-o"></i> <td style="color:#0d8ade;"><i class="fa fa-folder-open-o"></i>
<a style="cursor: pointer" onclick="change_directory('<%=@current_dir + "/" + t["name"]%>')"><%=t["name"]%></a> <a style="cursor: pointer" onclick="change_directory('<%=@current_dir + "/" + t["name"]%>')"> <%=t["name"]%></a>
</td> </td>
<% else %> <% else %>
<td><i class="fa fa-file-o"></i> <td><i class="fa fa-file-o"></i>