summaryrefslogtreecommitdiffstats
path: root/apps/files/templates/part.list.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-14 18:48:30 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-14 18:52:53 +0200
commita255cc60075e9dab831754ff09cb522c37ea421f (patch)
tree5c222ee2e1cad94aac50448f4d6aeb3adf614a61 /apps/files/templates/part.list.php
parent320bf0e8c1fda9560d2ec6046153eeef59c7da1e (diff)
downloadnextcloud-server-a255cc60075e9dab831754ff09cb522c37ea421f.tar.gz
nextcloud-server-a255cc60075e9dab831754ff09cb522c37ea421f.zip
fix adding preview-icon to clss attribute
Diffstat (limited to 'apps/files/templates/part.list.php')
-rw-r--r--apps/files/templates/part.list.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php
index ab1b91167db..e3420ca14cb 100644
--- a/apps/files/templates/part.list.php
+++ b/apps/files/templates/part.list.php
@@ -25,7 +25,11 @@ $totalsize = 0; ?>
data-mime="<?php p($file['mimetype'])?>"
data-size='<?php p($file['size']);?>'
data-permissions='<?php p($file['permissions']); ?>'>
+ <?php if(\OCP\Preview::isMimeSupported($file['mimetype'])): ?>
+ <td class="filename svg preview-icon"
+ <?php else: ?>
<td class="filename svg"
+ <?php endif; ?>
<?php if($file['type'] == 'dir'): ?>
style="background-image:url(<?php print_unescaped(OCP\mimetype_icon('dir')); ?>)"
<?php else: ?>
@@ -34,13 +38,13 @@ $totalsize = 0; ?>
$relativePath = substr($relativePath, strlen($_['sharingroot']));
?>
<?php if(\OCP\Preview::isMimeSupported($file['mimetype'])): ?>
- style="background-image:url(<?php print_unescaped(OCP\publicPreview_icon($relativePath, $_['sharingtoken'])); ?>)" class="preview-icon"
+ style="background-image:url(<?php print_unescaped(OCP\publicPreview_icon($relativePath, $_['sharingtoken'])); ?>)"
<?php else: ?>
style="background-image:url(<?php print_unescaped(OCP\mimetype_icon($file['mimetype'])); ?>)"
<?php endif; ?>
<?php else: ?>
<?php if(\OCP\Preview::isMimeSupported($file['mimetype'])): ?>
- style="background-image:url(<?php print_unescaped(OCP\preview_icon($relativePath)); ?>)" class="preview-icon"
+ style="background-image:url(<?php print_unescaped(OCP\preview_icon($relativePath)); ?>)"
<?php else: ?>
style="background-image:url(<?php print_unescaped(OCP\mimetype_icon($file['mimetype'])); ?>)"
<?php endif; ?>