diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-06 11:06:24 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-06 13:42:18 +0300 |
commit | 5682d302c72ae42dfa16b068ad70fe312ed1ff9d (patch) | |
tree | 6ec25f56e0a085117a2fd685a55c3ed46d637cf6 /apps/files_sharing/templates | |
parent | 54a30a4b81700570303eaae03810f6ef553d66a2 (diff) |
Add grid toggle for every files view
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/templates')
-rw-r--r-- | apps/files_sharing/templates/list.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/templates/public.php | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/files_sharing/templates/list.php b/apps/files_sharing/templates/list.php index de92037a563..95ba9160a9f 100644 --- a/apps/files_sharing/templates/list.php +++ b/apps/files_sharing/templates/list.php @@ -10,7 +10,7 @@ <h2><?php p($l->t('No entries found in this folder')); ?></h2> </div> -<table id="filestable" class="list-container view-grid"> +<table id="filestable" class="list-container <?php p($_['showgridview'] ? 'view-grid' : '') ?>"> <thead> <tr> <th id='headerName' class="hidden column-name"> diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 4487e63f2de..08e119322e5 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -45,6 +45,13 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size); </div> <?php endif; ?> +<?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 if (!isset($_['hideFileList']) || (isset($_['hideFileList']) && $_['hideFileList'] === false)) { ?> <div id="files-public-content"> <div id="preview"> |