diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-06 09:06:24 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-06 11:42:18 +0100 |
commit | 5682d302c72ae42dfa16b068ad70fe312ed1ff9d (patch) | |
tree | 6ec25f56e0a085117a2fd685a55c3ed46d637cf6 /apps/files/recentlist.php | |
parent | 54a30a4b81700570303eaae03810f6ef553d66a2 (diff) | |
download | nextcloud-server-5682d302c72ae42dfa16b068ad70fe312ed1ff9d.tar.gz nextcloud-server-5682d302c72ae42dfa16b068ad70fe312ed1ff9d.zip |
Add grid toggle for every files view
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/recentlist.php')
-rw-r--r-- | apps/files/recentlist.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files/recentlist.php b/apps/files/recentlist.php index 91a9bce06b5..c17f9d598bf 100644 --- a/apps/files/recentlist.php +++ b/apps/files/recentlist.php @@ -23,7 +23,15 @@ */ // Check if we are a user OCP\User::checkLoggedIn(); +$config = \OC::$server->getConfig(); +$userSession = \OC::$server->getUserSession(); + +$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', true); +$isIE = \OCP\Util::isIE(); $tmpl = new OCP\Template('files', 'recentlist', ''); +// gridview not available for ie +$tmpl->assign('showgridview', $showgridview && !$isIE); + $tmpl->printPage(); |