diff options
author | Georg Ehrke <georg@ownCloud.com> | 2013-06-26 18:04:18 +0200 |
---|---|---|
committer | Georg Ehrke <georg@ownCloud.com> | 2013-06-26 18:04:22 +0200 |
commit | 39c387eed4e5da7bddb6f7cd48a8f8b607f3b8dd (patch) | |
tree | ba9c23cc7c5ace7195639192769b9635b9531b7f /apps/files | |
parent | 9b7efef39d3f7eae45741f0adf0bc0d52945d842 (diff) | |
download | nextcloud-server-39c387eed4e5da7bddb6f7cd48a8f8b607f3b8dd.tar.gz nextcloud-server-39c387eed4e5da7bddb6f7cd48a8f8b607f3b8dd.zip |
implement server side use of previews
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/templates/part.list.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 1e94275dcba..6dabd7d6970 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -1,6 +1,7 @@ <input type="hidden" id="disableSharing" data-status="<?php p($_['disableSharing']); ?>"> <?php foreach($_['files'] as $file): + $relativePath = substr($file['path'], 6); $simple_file_size = OCP\simple_file_size($file['size']); // the bigger the file, the darker the shade of grey; megabytes*2 $simple_size_color = intval(160-$file['size']/(1024*1024)*2); @@ -23,7 +24,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(OCP\preview_icon($relativePath)); ?>)" <?php endif; ?> > <?php if(!isset($_['readonly']) || !$_['readonly']): ?><input type="checkbox" /><?php endif; ?> |