summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-29 16:27:40 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-29 16:27:40 +0200
commit2ea8ee613986216a420fad2795b5e7fa89519d5e (patch)
tree16dde7d0c8e7353eaacda40b240cc5e47f00aa54 /apps/files_trashbin
parent1e4ec2ac276b15232824da056b6253696d324d42 (diff)
downloadnextcloud-server-2ea8ee613986216a420fad2795b5e7fa89519d5e.tar.gz
nextcloud-server-2ea8ee613986216a420fad2795b5e7fa89519d5e.zip
add class='preview-icon' in trashbin app as well
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/trash.php2
-rw-r--r--apps/files_trashbin/templates/part.list.php6
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index 4174ef0d185..71e76770aa9 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -858,6 +858,6 @@ class Trashbin {
}
public static function preview_icon($path) {
- return \OC_Helper::linkToRoute( 'core_ajax_trashbin_preview', array('x' => 44, 'y' => 44, 'file' => urlencode($path) ));
+ return \OC_Helper::linkToRoute( 'core_ajax_trashbin_preview', array('x' => 36, 'y' => 36, 'file' => urlencode($path) ));
}
}
diff --git a/apps/files_trashbin/templates/part.list.php b/apps/files_trashbin/templates/part.list.php
index 44e2fc7293b..71b9a238823 100644
--- a/apps/files_trashbin/templates/part.list.php
+++ b/apps/files_trashbin/templates/part.list.php
@@ -25,7 +25,11 @@
<?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(OCA\Files_Trashbin\Trashbin::preview_icon(!$_['dirlisting'] ? ($file['name'].'.d'.$file['timestamp']) : ($file['directory'].'/'.$file['name']))); ?>)"
+ <?php if(\OCP\Preview::isMimeSupported($file['mimetype'])): ?>
+ style="background-image:url(<?php print_unescaped(OCA\Files_Trashbin\Trashbin::preview_icon(!$_['dirlisting'] ? ($file['name'].'.d'.$file['timestamp']) : ($file['directory'].'/'.$file['name']))); ?>)" class="preview-icon"
+ <?php else: ?>
+ style="background-image:url(<?php print_unescaped(OCP\mimetype_icon($file['mimetype'])); ?>)"
+ <?php endif; ?>
<?php endif; ?>
>
<?php if(!isset($_['readonly']) || !$_['readonly']): ?><input type="checkbox" /><?php endif; ?>