diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-07-29 16:27:40 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-07-29 16:27:40 +0200 |
commit | 2ea8ee613986216a420fad2795b5e7fa89519d5e (patch) | |
tree | 16dde7d0c8e7353eaacda40b240cc5e47f00aa54 /apps/files_trashbin/templates | |
parent | 1e4ec2ac276b15232824da056b6253696d324d42 (diff) | |
download | nextcloud-server-2ea8ee613986216a420fad2795b5e7fa89519d5e.tar.gz nextcloud-server-2ea8ee613986216a420fad2795b5e7fa89519d5e.zip |
add class='preview-icon' in trashbin app as well
Diffstat (limited to 'apps/files_trashbin/templates')
-rw-r--r-- | apps/files_trashbin/templates/part.list.php | 6 |
1 files changed, 5 insertions, 1 deletions
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; ?> |