diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index 00ec109621f..673cb8592f8 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -18,6 +18,10 @@ + + + + diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 2407903a928..49d485c86af 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -224,7 +224,8 @@ if (isset($path)) { $folder->assign('fileList', $list->fetchPage()); $folder->assign('breadcrumb', $breadcrumbNav->fetchPage()); $folder->assign('dir', $getPath); - $folder->assign('isCreatable', false); + $folder->assign('isCreatable', $allowPublicUploadEnabled); + $folder->assign('dirToken', $linkItem['token']); $folder->assign('permissions', OCP\PERMISSION_READ); $folder->assign('isPublic',true); $folder->assign('publicUploadEnabled', 'no'); diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 8b5e0976412..05150a59dd0 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -14,47 +14,7 @@ src="" alt="getName()); ?>" />
- - t('%s shared the folder %s with you', - array($_['displayName'], $_['filename']))) ?> - - t('%s shared the file %s with you', - array($_['displayName'], $_['filename']))) ?> - - - - - - Download" /> - t('Download'))?> - - - - - - - - - - - - = 0):?> - - - - -
- - - Upload" /> - t('Upload'))?> - -
- -
-
- + t('shared by %s', array($_['displayName']))) ?>