From 1ecc1482261be3006c60cc7ca645bf3039d1d8d1 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Wed, 9 Aug 2023 19:58:46 +0000 Subject: [PATCH] more generic site file download path --- app/site_files.rb | 2 +- views/dashboard.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/site_files.rb b/app/site_files.rb index 1e94fc43..ef0b8bb2 100644 --- a/app/site_files.rb +++ b/app/site_files.rb @@ -186,7 +186,7 @@ post '/site_files/rename' do redirect "/dashboard#{dir_query}" end -get '/site_files/:username.zip' do |username| +get '/site_files/download' do require_login if !current_site.dl_queued_at.nil? && current_site.dl_queued_at > 1.hour.ago diff --git a/views/dashboard.erb b/views/dashboard.erb index 6d4b8a2e..068d1abb 100644 --- a/views/dashboard.erb +++ b/views/dashboard.erb @@ -218,7 +218,7 @@ <% if !current_site.plan_feature(:no_file_restrictions) %> Allowed file types | <% end %> - Download entire site | + Download entire site | <% unless is_education? %> Mount your site as a drive on your computer <% end %>