summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-08 10:53:53 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-08 10:53:53 +0200
commit04292ff16c56d85216ddbd6f644e8055413c0170 (patch)
treed05dfd86565997c95a33f536b34a3a904e38c531 /apps
parent6e864e6599602609b5808ae4d043b273a9fe5071 (diff)
downloadnextcloud-server-04292ff16c56d85216ddbd6f644e8055413c0170.tar.gz
nextcloud-server-04292ff16c56d85216ddbd6f644e8055413c0170.zip
implement use of preview icons in thrashbin app
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/trash.php4
-rw-r--r--apps/files_trashbin/templates/part.list.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index 7b8d3cb4252..e82a597c61e 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -850,4 +850,8 @@ class Trashbin {
//Listen to delete user signal
\OCP\Util::connectHook('OC_User', 'pre_deleteUser', "OCA\Files_Trashbin\Hooks", "deleteUser_hook");
}
+
+ public static function preview_icon($path) {
+ return \OC_Helper::linkToRoute( 'core_ajax_trashbin_preview', array('x' => 44, 'y' => 44, 'file' => $path));
+ }
}
diff --git a/apps/files_trashbin/templates/part.list.php b/apps/files_trashbin/templates/part.list.php
index 92a38bd2635..d53e38549d1 100644
--- a/apps/files_trashbin/templates/part.list.php
+++ b/apps/files_trashbin/templates/part.list.php
@@ -27,7 +27,7 @@
<?php if($file['type'] == 'dir'): ?>
style="background-image:url(<?php print_unescaped(OCP\mimetype_icon('dir')); ?>)"
<?php else: ?>
- style="background-image:url(<?php print_unescaped(OCP\mimetype_icon($file['mimetype'])); ?>)"
+ style="background-image:url(<?php print_unescaped(OCA\Files_Trashbin\Trashbin::preview_icon($file['name'].'.d'.$file['timestamp'])); ?>)"
<?php endif; ?>
>
<?php if(!isset($_['readonly']) || !$_['readonly']): ?><input type="checkbox" /><?php endif; ?>