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('Text file');?>
t('Folder');?>
t('Text file');?>
t('Folder');?>
| t( 'Modified' ); ?> |
-
+
|---|