]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix merge conflict
authorBjörn Schießle <schiessle@owncloud.com>
Thu, 31 Jan 2013 09:55:59 +0000 (10:55 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Thu, 31 Jan 2013 09:55:59 +0000 (10:55 +0100)
1  2 
apps/files/css/files.css
apps/files/index.php
apps/files/js/files.js

Simple merge
index 7ac201c873205a033b22d0d89b683fe15e47c23e,d2cd76a71066516b25c11fa9ef186fd2108ee089..7e767cc8a4ff3bb390ecc9fd1c6472bf7bef2361
@@@ -97,19 -112,28 +112,29 @@@ if (\OC\Files\Filesystem::isSharable($d
        $permissions |= OCP\PERMISSION_SHARE;
  }
  
- // information about storage capacities
- $storageInfo=OC_Helper::getStorageInfo();
+ if ($needUpgrade) {
+       OCP\Util::addscript('files', 'upgrade');
+       $tmpl = new OCP\Template('files', 'upgrade', 'user');
+       $tmpl->printPage();
+ } else {
+       // information about storage capacities
+       $storageInfo=OC_Helper::getStorageInfo();
+       $maxUploadFilesize=OCP\Util::maxUploadFilesize($dir);
  
- $tmpl = new OCP\Template('files', 'index', 'user');
- $tmpl->assign('fileList', $list->fetchPage(), false);
- $tmpl->assign('breadcrumb', $breadcrumbNav->fetchPage(), false);
- $tmpl->assign('dir', OC_Filesystem::normalizePath($dir));
- $tmpl->assign('isCreatable', OC_Filesystem::isCreatable($dir . '/'));
- $tmpl->assign('permissions', $permissions);
- $tmpl->assign('files', $files);
- $tmpl->assign('trash', \OCP\App::isEnabled('files_trashbin'));
- $tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
- $tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
- $tmpl->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true)));
- $tmpl->assign('usedSpacePercent', (int)$storageInfo['relative']);
- $tmpl->printPage();
+       OCP\Util::addscript('files', 'fileactions');
+       OCP\Util::addscript('files', 'files');
+       OCP\Util::addscript('files', 'keyboardshortcuts');
+       $tmpl = new OCP\Template('files', 'index', 'user');
+       $tmpl->assign('fileList', $list->fetchPage(), false);
+       $tmpl->assign('breadcrumb', $breadcrumbNav->fetchPage(), false);
+       $tmpl->assign('dir', \OC\Files\Filesystem::normalizePath($dir));
+       $tmpl->assign('isCreatable', \OC\Files\Filesystem::isCreatable($dir . '/'));
+       $tmpl->assign('permissions', $permissions);
+       $tmpl->assign('files', $files);
++      $tmpl->assign('trash', \OCP\App::isEnabled('files_trashbin'));
+       $tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
+       $tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
+       $tmpl->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true)));
+       $tmpl->assign('usedSpacePercent', (int)$storageInfo['relative']);
+       $tmpl->printPage();
 -}
++}
Simple merge