mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 15:51:55 +02:00
finishing up drag-n-drop code, use param for filename with site_file/text_editor
This commit is contained in:
parent
943271b509
commit
f6af2cbbcf
7 changed files with 196 additions and 399 deletions
|
@ -8,7 +8,7 @@ get '/dashboard' do
|
|||
current_site.save_changes validate: false
|
||||
end
|
||||
|
||||
erb :'dashboard'
|
||||
erb :'dashboard/index'
|
||||
end
|
||||
|
||||
def dashboard_init
|
||||
|
@ -30,3 +30,11 @@ def dashboard_init
|
|||
@dir = params[:dir]
|
||||
@file_list = current_site.file_list @dir
|
||||
end
|
||||
|
||||
get '/dashboard/files' do
|
||||
require_login
|
||||
dashboard_init
|
||||
dont_browser_cache
|
||||
|
||||
erb :'dashboard/files', layout: false
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue