summaryrefslogtreecommitdiffstats
path: root/apps/files/templates/index.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-06 09:06:24 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-11-06 11:42:18 +0100
commit5682d302c72ae42dfa16b068ad70fe312ed1ff9d (patch)
tree6ec25f56e0a085117a2fd685a55c3ed46d637cf6 /apps/files/templates/index.php
parent54a30a4b81700570303eaae03810f6ef553d66a2 (diff)
downloadnextcloud-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/templates/index.php')
-rw-r--r--apps/files/templates/index.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index b49684643bb..69ad73f1081 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -1,6 +1,14 @@
<?php /** @var $l \OCP\IL10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
<div id="app-content">
+
+ <?php if (!$_['isIE']) { ?>
+ <input type="checkbox" class="hidden-visually" id="showgridview"
+ <?php if($_['showgridview']) { ?>checked="checked" <?php } ?>/>
+ <label id="view-toggle" for="showgridview" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>"
+ title="<?php p($l->t('Toggle grid view'))?>"></label>
+ <?php } ?>
+
<?php foreach ($_['appContents'] as $content) { ?>
<div id="app-content-<?php p($content['id']) ?>" class="hidden viewcontainer">
<?php print_unescaped($content['content']) ?>