diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-11-16 13:48:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-16 13:48:16 +0100 |
commit | 9a6d60e95f4e1fe3d5e7710da41c689cdea97df9 (patch) | |
tree | 10c797cde64a4a9a88e2c07f1687e543fe354079 | |
parent | 56fdb226a13ba8b5d93b3248eeb5e6be06e5ec27 (diff) | |
parent | 1deda8fd6575426e854276c83a52df8060893b1e (diff) | |
download | nextcloud-server-9a6d60e95f4e1fe3d5e7710da41c689cdea97df9.tar.gz nextcloud-server-9a6d60e95f4e1fe3d5e7710da41c689cdea97df9.zip |
Merge pull request #12474 from nextcloud/default-to-files-list
Rollback to default list view
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 2 | ||||
-rw-r--r-- | apps/files/list.php | 2 | ||||
-rw-r--r-- | apps/files/recentlist.php | 2 | ||||
-rw-r--r-- | apps/files/simplelist.php | 2 | ||||
-rw-r--r-- | apps/files/tests/Controller/ViewControllerTest.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareController.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/list.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/tests/Controller/ShareControllerTest.php | 6 | ||||
-rw-r--r-- | apps/files_trashbin/list.php | 2 |
9 files changed, 13 insertions, 13 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index 3932b2b0a8e..fc0fb120cfe 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -257,7 +257,7 @@ class ViewController extends Controller { $params['allowShareWithLink'] = $this->config->getAppValue('core', 'shareapi_allow_links', 'yes'); $params['defaultFileSorting'] = $this->config->getUserValue($user, 'files', 'file_sorting', 'name'); $params['defaultFileSortingDirection'] = $this->config->getUserValue($user, 'files', 'file_sorting_direction', 'asc'); - $params['showgridview'] = $this->config->getUserValue($user, 'files', 'show_grid', true); + $params['showgridview'] = $this->config->getUserValue($user, 'files', 'show_grid', false); $params['isIE'] = \OCP\Util::isIE(); $showHidden = (bool) $this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', false); $params['showHiddenFiles'] = $showHidden ? 1 : 0; diff --git a/apps/files/list.php b/apps/files/list.php index 7a5159cf387..9ceeaaa0491 100644 --- a/apps/files/list.php +++ b/apps/files/list.php @@ -26,7 +26,7 @@ $userSession = \OC::$server->getUserSession(); // TODO: move this to the generated config.js $publicUploadEnabled = $config->getAppValue('core', 'shareapi_allow_public_upload', 'yes'); -$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', true); +$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false); $isIE = \OCP\Util::isIE(); // renders the controls and table headers template diff --git a/apps/files/recentlist.php b/apps/files/recentlist.php index c17f9d598bf..99409749e36 100644 --- a/apps/files/recentlist.php +++ b/apps/files/recentlist.php @@ -26,7 +26,7 @@ OCP\User::checkLoggedIn(); $config = \OC::$server->getConfig(); $userSession = \OC::$server->getUserSession(); -$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', true); +$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false); $isIE = \OCP\Util::isIE(); $tmpl = new OCP\Template('files', 'recentlist', ''); diff --git a/apps/files/simplelist.php b/apps/files/simplelist.php index 9515ec62363..d623b251306 100644 --- a/apps/files/simplelist.php +++ b/apps/files/simplelist.php @@ -25,7 +25,7 @@ $config = \OC::$server->getConfig(); $userSession = \OC::$server->getUserSession(); -$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', true); +$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false); $isIE = \OCP\Util::isIE(); // renders the controls and table headers template diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php index 35fc1e74c1a..d051ab7258d 100644 --- a/apps/files/tests/Controller/ViewControllerTest.php +++ b/apps/files/tests/Controller/ViewControllerTest.php @@ -131,7 +131,7 @@ class ViewControllerTest extends TestCase { [$this->user->getUID(), 'files', 'file_sorting', 'name', 'name'], [$this->user->getUID(), 'files', 'file_sorting_direction', 'asc', 'asc'], [$this->user->getUID(), 'files', 'show_hidden', false, false], - [$this->user->getUID(), 'files', 'show_grid', true, true], + [$this->user->getUID(), 'files', 'show_grid', true], ])); $this->config @@ -367,7 +367,7 @@ class ViewControllerTest extends TestCase { ], ], 'hiddenFields' => [], - 'showgridview' => true, + 'showgridview' => false, 'isIE' => false, ] ); diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php index 00c6a7a4985..f3ad6223511 100644 --- a/apps/files_sharing/lib/Controller/ShareController.php +++ b/apps/files_sharing/lib/Controller/ShareController.php @@ -360,7 +360,7 @@ class ShareController extends AuthPublicShareController { $folder->assign('isPublic', true); $folder->assign('hideFileList', $hideFileList); $folder->assign('publicUploadEnabled', 'no'); - $folder->assign('showgridview', true); + $folder->assign('showgridview', false); $folder->assign('uploadMaxFilesize', $maxUploadFilesize); $folder->assign('uploadMaxHumanFilesize', \OCP\Util::humanFileSize($maxUploadFilesize)); $folder->assign('freeSpace', $freeSpace); @@ -371,7 +371,7 @@ class ShareController extends AuthPublicShareController { $shareIsFolder = false; } - $shareTmpl['showgridview'] = true; + $shareTmpl['showgridview'] = false; $shareTmpl['hideFileList'] = $hideFileList; $shareTmpl['shareOwner'] = $this->userManager->get($share->getShareOwner())->getDisplayName(); diff --git a/apps/files_sharing/list.php b/apps/files_sharing/list.php index 590a3a1911e..9eed10f8d26 100644 --- a/apps/files_sharing/list.php +++ b/apps/files_sharing/list.php @@ -24,7 +24,7 @@ OCP\User::checkLoggedIn(); $config = \OC::$server->getConfig(); $userSession = \OC::$server->getUserSession(); -$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', true); +$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false); $isIE = \OCP\Util::isIE(); $tmpl = new OCP\Template('files_sharing', 'list', ''); diff --git a/apps/files_sharing/tests/Controller/ShareControllerTest.php b/apps/files_sharing/tests/Controller/ShareControllerTest.php index 3a9856e1bd2..ea9bd8316e2 100644 --- a/apps/files_sharing/tests/Controller/ShareControllerTest.php +++ b/apps/files_sharing/tests/Controller/ShareControllerTest.php @@ -290,7 +290,7 @@ class ShareControllerTest extends \Test\TestCase { 'previewURL' => 'downloadURL', 'note' => $note, 'hideDownload' => false, - 'showgridview' => true + 'showgridview' => false ); $csp = new \OCP\AppFramework\Http\ContentSecurityPolicy(); @@ -410,7 +410,7 @@ class ShareControllerTest extends \Test\TestCase { 'previewURL' => 'downloadURL', 'note' => $note, 'hideDownload' => true, - 'showgridview' => true + 'showgridview' => false ); $csp = new \OCP\AppFramework\Http\ContentSecurityPolicy(); @@ -509,7 +509,7 @@ class ShareControllerTest extends \Test\TestCase { 'previewURL' => '', 'note' => '', 'hideDownload' => false, - 'showgridview' => true + 'showgridview' => false ); $csp = new \OCP\AppFramework\Http\ContentSecurityPolicy(); diff --git a/apps/files_trashbin/list.php b/apps/files_trashbin/list.php index 48ed7b694d0..127e0389815 100644 --- a/apps/files_trashbin/list.php +++ b/apps/files_trashbin/list.php @@ -27,7 +27,7 @@ OCP\User::checkLoggedIn(); $config = \OC::$server->getConfig(); $userSession = \OC::$server->getUserSession(); -$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', true); +$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false); $isIE = \OCP\Util::isIE(); $tmpl = new OCP\Template('files_trashbin', 'index', ''); |