summaryrefslogtreecommitdiffstats
path: root/files/templates
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-30 15:42:34 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-30 15:42:34 +0200
commitb2f1d26d9312ece3a370d3af4672ad55f288bf31 (patch)
tree36ecc5b4b2bed6b9d5435143493c44ea0774ac61 /files/templates
parent103d45539d4db6b5c646df46acd487a05c121290 (diff)
downloadnextcloud-server-b2f1d26d9312ece3a370d3af4672ad55f288bf31.tar.gz
nextcloud-server-b2f1d26d9312ece3a370d3af4672ad55f288bf31.zip
fixed color calculation again
Diffstat (limited to 'files/templates')
-rw-r--r--files/templates/part.list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/templates/part.list.php b/files/templates/part.list.php
index 22edd9351cd..93ed70990b7 100644
--- a/files/templates/part.list.php
+++ b/files/templates/part.list.php
@@ -1,7 +1,7 @@
<span id="emptyfolder" <?php if(count($_['files'])) echo 'style="display:none;"';?>>Nothing in here. Upload something!</span>
<?php foreach($_['files'] as $file):
$simple_file_size = simple_file_size($file['size']);
- $simple_size_color = intval(200-$file['size']/1024*1024*2); // the bigger the file, the darker the shade of grey; megabytes*2
+ $simple_size_color = intval(200-$file['size']/(1024*1024)*2); // the bigger the file, the darker the shade of grey; megabytes*2
if($simple_size_color<0) $simple_size_color = 0;
$relative_modified_date = relative_modified_date($file['mtime']);
$relative_date_color = round((time()-$file['mtime'])/60/60/24*14); // the older the file, the brighter the shade of grey; days*14