From ebcbf85396387729bbef3d2ad3289b45c3ae289d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 4 Feb 2014 16:25:23 +0100 Subject: [PATCH] reuse file upload as used within files app - remove public upload button --- apps/files/templates/index.php | 4 +++ apps/files_sharing/public.php | 3 +- apps/files_sharing/templates/public.php | 42 +------------------------ 3 files changed, 7 insertions(+), 42 deletions(-) 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):?> - - - - - - -
-
- + t('shared by %s', array($_['displayName']))) ?>