aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-12 00:13:19 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-12 00:13:19 +0200
commitb49f43c3aeca2f437af15b7fc0ccc3d6191f6160 (patch)
tree9ac2dae1f4c488e5582cd51d6e372535a4bc6018 /apps
parent8543951cf9f4ec9e3c7cec998fada90c628bce76 (diff)
downloadnextcloud-server-b49f43c3aeca2f437af15b7fc0ccc3d6191f6160.tar.gz
nextcloud-server-b49f43c3aeca2f437af15b7fc0ccc3d6191f6160.zip
move icon generation logic out of the template
Diffstat (limited to 'apps')
-rw-r--r--apps/files/templates/part.list.php21
1 files changed, 1 insertions, 20 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php
index 4076c1bb331..7d1b317e016 100644
--- a/apps/files/templates/part.list.php
+++ b/apps/files/templates/part.list.php
@@ -22,26 +22,7 @@
<?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: ?>
- <?php if($_['isPublic']): ?>
- <?php
- $relativePath = substr($relativePath, strlen($_['sharingroot']));
- ?>
- <?php if($file['isPreviewAvailable']): ?>
- 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($file['isPreviewAvailable']): ?>
- 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; ?>
- <?php endif; ?>
- <?php endif; ?>
+ style="background-image:url(<?php print_unescaped($file['icon']); ?>)"
>
<?php if(!isset($_['readonly']) || !$_['readonly']): ?>
<input id="select-<?php p($file['fileid']); ?>" type="checkbox" />