From dc641943d9245b371eca1928a64bcadfe72f9cf6 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 16 Dec 2011 17:39:15 +0100 Subject: [PATCH] fix some display issues for readonly folders --- files/index.php | 1 + files/templates/index.php | 63 ++++++++++++++++++--------------------- 2 files changed, 30 insertions(+), 34 deletions(-) diff --git a/files/index.php b/files/index.php index 4b3bbd1bfd4..7e156130d8e 100644 --- a/files/index.php +++ b/files/index.php @@ -97,6 +97,7 @@ $tmpl = new OC_Template( "files", "index", "user" ); $tmpl->assign( "fileList", $list->fetchPage() ); $tmpl->assign( "breadcrumb", $breadcrumbNav->fetchPage() ); $tmpl->assign( 'dir', $dir); +$tmpl->assign( 'readonly', !OC_Filesystem::is_writeable($dir)); $tmpl->assign( "files", $files ); $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); $tmpl->assign( 'uploadMaxHumanFilesize', OC_Helper::humanFileSize($maxUploadFilesize)); diff --git a/files/templates/index.php b/files/templates/index.php index 722c38e4776..c4acab25cc4 100644 --- a/files/templates/index.php +++ b/files/templates/index.php @@ -1,42 +1,37 @@
- -
-
- - t('New');?> - - + +
+
+ + t('New');?> + + +
+
+
+ + + + + + + +
+
-
-
- - - - - - - -
-
-
-
-
+
+
-
- -
t('Nothing in here. Upload something!')?>
- + +
t('Nothing in here. Upload something!')?>
+ @@ -53,7 +48,7 @@ if (isset($_['files'])) { - +
t( 'Modified' ); ?><?php echo $l->t('Delete')?>" />
-- 2.39.5