mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-20 18:32:41 +00:00
update
This commit is contained in:
@@ -422,15 +422,21 @@ def view_shared_upload_link(request, uploadlink):
|
|||||||
logger.error(e)
|
logger.error(e)
|
||||||
max_upload_file_size = -1
|
max_upload_file_size = -1
|
||||||
|
|
||||||
return render(request, 'view_shared_upload_link_react.html', {
|
data = {
|
||||||
'repo': repo,
|
'repo': repo,
|
||||||
'path': path,
|
'path': path,
|
||||||
'username': username,
|
'username': username,
|
||||||
'dir_name': dir_name,
|
'dir_name': dir_name,
|
||||||
'max_upload_file_size': max_upload_file_size,
|
'max_upload_file_size': max_upload_file_size,
|
||||||
'no_quota': no_quota,
|
'no_quota': no_quota,
|
||||||
'uploadlink': uploadlink,
|
'uploadlink': uploadlink,
|
||||||
'enable_upload_folder': ENABLE_UPLOAD_FOLDER,
|
'enable_upload_folder': ENABLE_UPLOAD_FOLDER,
|
||||||
'enable_resumable_fileupload': ENABLE_RESUMABLE_FILEUPLOAD,
|
'enable_resumable_fileupload': ENABLE_RESUMABLE_FILEUPLOAD,
|
||||||
'max_number_of_files_for_fileupload': MAX_NUMBER_OF_FILES_FOR_FILEUPLOAD,
|
'max_number_of_files_for_fileupload': MAX_NUMBER_OF_FILES_FOR_FILEUPLOAD,
|
||||||
})
|
}
|
||||||
|
|
||||||
|
if not request.user.is_authenticated:
|
||||||
|
from seahub.utils import get_logo_path_by_user
|
||||||
|
data['logo_path'] = get_logo_path_by_user(uploadlink.username)
|
||||||
|
|
||||||
|
return render(request, 'view_shared_upload_link_react.html', data)
|
||||||
|
|||||||
Reference in New Issue
Block a user