update
This commit is contained in:
parent
d8f6856d70
commit
5a6c4d367c
@ -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
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user