summaryrefslogtreecommitdiffstats
path: root/apps/files/templates/index.php
diff options
context:
space:
mode:
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']) ?>