From: Robin Appelman Date: Fri, 16 Dec 2011 16:39:15 +0000 (+0100) Subject: fix some display issues for readonly folders X-Git-Tag: v3.0~79^2~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc641943d9245b371eca1928a64bcadfe72f9cf6;p=nextcloud-server.git fix some display issues for readonly folders --- 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')?>" />