From b2f6e5673d1fbf72695b5c64db7d5e51d59b9e2e Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 4 Jan 2021 10:58:41 +0000 Subject: some work on the tiles view --- Zotlabs/Storage/Browser.php | 2 +- view/tpl/cloud_directory.tpl | 66 +++++++++++++++++++++----------------------- 2 files changed, 32 insertions(+), 36 deletions(-) diff --git a/Zotlabs/Storage/Browser.php b/Zotlabs/Storage/Browser.php index 0c6072ee4..9ae881f2f 100644 --- a/Zotlabs/Storage/Browser.php +++ b/Zotlabs/Storage/Browser.php @@ -500,7 +500,7 @@ class Browser extends DAV\Browser\Plugin { $breadcrumbs_html = ''; - if($display_path && ! $_REQUEST['cat']){ + if($display_path && ! $_REQUEST['cat'] && ! $_SESSION['cloud_tiles']){ $breadcrumbs = []; $folders = explode('/', $display_path); $folder_hashes = explode('/', $node->os_path); diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl index c24e3c8aa..757239960 100644 --- a/view/tpl/cloud_directory.tpl +++ b/view/tpl/cloud_directory.tpl @@ -1,46 +1,42 @@ -
+
{{if $tiles}} {{* this is needed to append the upload files in the right order *}}
- - {{if $parentpath}} -
- -
- .. -
-
- {{/if}} - - {{foreach $entries as $item}} -
-
- {{if $item.photo_icon}} - - {{else}} -
- +
+ {{if $parentpath}} + {{/if}} + {{foreach $entries as $item}} + - - {{if $is_owner}} - {{* add file tools here *}} - {{/if}} + {{/foreach}}
- {{/foreach}} -
{{else}} -- cgit v1.2.3