quick fix for now, improve later

This commit is contained in:
Kyle Drake 2014-12-26 02:37:14 -06:00
parent b49590a8f8
commit 7dc4179bf8

View file

@ -70,7 +70,9 @@ post '/site_files/upload' do
file_upload_response "#{params[:dir]}/#{file[:filename]} is too large, upload cancelled."
end
if !current_site.okay_to_upload? file
file_upload_response %{#{params[:dir]}#{file[:filename]}: file type (or content in file) is only supported by <a href="/plan">supporter accounts</a>. <a href="/site_files/allowed_types">Why We Do This</a>}
file_upload_response %{#{params[:dir]}#{file[:filename]}: file type (or content in file) is only supported by supporter accounts.}
# TODO: Better explanation and link.
#<a href="/plan">supporter accounts</a>. <a href="/site_files/allowed_types">Why We Do This</a>}
end
end