mirror of
https://github.com/neocities/neocities.git
synced 2025-06-30 08:03:29 +02:00
more generic site file download path
This commit is contained in:
parent
95e61a3f45
commit
1ecc148226
2 changed files with 2 additions and 2 deletions
|
@ -186,7 +186,7 @@ post '/site_files/rename' do
|
||||||
redirect "/dashboard#{dir_query}"
|
redirect "/dashboard#{dir_query}"
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/site_files/:username.zip' do |username|
|
get '/site_files/download' do
|
||||||
require_login
|
require_login
|
||||||
|
|
||||||
if !current_site.dl_queued_at.nil? && current_site.dl_queued_at > 1.hour.ago
|
if !current_site.dl_queued_at.nil? && current_site.dl_queued_at > 1.hour.ago
|
||||||
|
|
|
@ -218,7 +218,7 @@
|
||||||
<% if !current_site.plan_feature(:no_file_restrictions) %>
|
<% if !current_site.plan_feature(:no_file_restrictions) %>
|
||||||
<a href="/site_files/allowed_types">Allowed file types</a> |
|
<a href="/site_files/allowed_types">Allowed file types</a> |
|
||||||
<% end %>
|
<% end %>
|
||||||
<a href="/site_files/<%= current_site.username %>.zip">Download entire site</a> |
|
<a href="/site_files/download">Download entire site</a> |
|
||||||
<% unless is_education? %>
|
<% unless is_education? %>
|
||||||
<a href="/site_files/mount_info">Mount your site as a drive on your computer</a>
|
<a href="/site_files/mount_info">Mount your site as a drive on your computer</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue