diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-08-29 10:50:55 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-08-29 10:50:55 +0200 |
commit | b7758d0f8d52b2f9653cfee549558327c00c8e01 (patch) | |
tree | 309fb713ed25f35f746c59c668521bf9023bc331 /apps/files/templates | |
parent | 70b6e2161ec654f7049027bf6dc5072c1eda4d5e (diff) | |
parent | ea6e74ca9546ca95b3a6372c6106cd8ab2ea2ee9 (diff) | |
download | nextcloud-server-b7758d0f8d52b2f9653cfee549558327c00c8e01.tar.gz nextcloud-server-b7758d0f8d52b2f9653cfee549558327c00c8e01.zip |
Merge master into oc_preview
Diffstat (limited to 'apps/files/templates')
-rw-r--r-- | apps/files/templates/part.list.php | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index c91dda4c77e..4076c1bb331 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -1,16 +1,7 @@ <input type="hidden" id="disableSharing" data-status="<?php p($_['disableSharing']); ?>"> -<?php $totalfiles = 0; -$totaldirs = 0; -$totalsize = 0; ?> <?php foreach($_['files'] as $file): //strlen('files/') => 6 $relativePath = substr($file['path'], 6); - $totalsize += $file['size']; - if ($file['type'] === 'dir') { - $totaldirs++; - } else { - $totalfiles++; - } // the bigger the file, the darker the shade of grey; megabytes*2 $simple_size_color = intval(160-$file['size']/(1024*1024)*2); if($simple_size_color<0) $simple_size_color = 0; @@ -88,33 +79,4 @@ $totalsize = 0; ?> </span> </td> </tr> -<?php endforeach; ?> - <?php if ($totaldirs !== 0 || $totalfiles !== 0): ?> - <tr class="summary"> - <td><span class="info"> - <?php if ($totaldirs !== 0) { - p($totaldirs.' '); - if ($totaldirs === 1) { - p($l->t('directory')); - } else { - p($l->t('directories')); - } - } - if ($totaldirs !== 0 && $totalfiles !== 0) { - p(' & '); - } - if ($totalfiles !== 0) { - p($totalfiles.' '); - if ($totalfiles === 1) { - p($l->t('file')); - } else { - p($l->t('files')); - } - } ?> - </span></td> - <td class="filesize"> - <?php print_unescaped(OCP\human_file_size($totalsize)); ?> - </td> - <td></td> - </tr> - <?php endif; +<?php endforeach; |