diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-07-18 22:15:26 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-07-18 22:15:26 +0200 |
commit | 48948ccf5f6f1d7de2765fb955f956063d9bedc8 (patch) | |
tree | a1f510db2a13aa3a446ee398a426c216eab5dfa2 /apps/files/templates/part.list.php | |
parent | 279a71acb37ac373703ed05050771ef971b5d9a1 (diff) | |
download | nextcloud-server-48948ccf5f6f1d7de2765fb955f956063d9bedc8.tar.gz nextcloud-server-48948ccf5f6f1d7de2765fb955f956063d9bedc8.zip |
finally remove the file size obfuscation as it had more disadvantages. I was wrong, sorry.
Diffstat (limited to 'apps/files/templates/part.list.php')
-rw-r--r-- | apps/files/templates/part.list.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 97a9026860b..0c7d6936697 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -9,7 +9,6 @@ $totalsize = 0; ?> } else { $totalfiles++; } - $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); if($simple_size_color<0) $simple_size_color = 0; @@ -52,9 +51,8 @@ $totalsize = 0; ?> </a> </td> <td class="filesize" - title="<?php p(OCP\human_file_size($file['size'])); ?>" style="color:rgb(<?php p($simple_size_color.','.$simple_size_color.','.$simple_size_color) ?>)"> - <?php print_unescaped($simple_file_size); ?> + <?php print_unescaped(OCP\human_file_size($file['size'])); ?> </td> <td class="date"> <span class="modified" @@ -91,7 +89,7 @@ $totalsize = 0; ?> } ?> </span></td> <td class="filesize"> - <?php print_unescaped(OCP\simple_file_size($totalsize)); ?> + <?php print_unescaped(OCP\human_file_size($totalsize)); ?> </td> <td></td> </tr> |