mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
add class='preview-icon' in trashbin app as well
This commit is contained in:
parent
1e4ec2ac27
commit
2ea8ee6139
2 changed files with 6 additions and 2 deletions
|
|
@ -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) ));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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; ?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue