diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-07-29 03:09:30 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-07-29 03:09:30 +0200 |
commit | 7e0bbd20c0f4b67d31fbe83669c26605449a48fb (patch) | |
tree | aacb74a122e0e371346fed8177b4f07279eeadea /files/templates | |
parent | d23d4e66c5908fd185f792e790e5e2d544a2bc79 (diff) | |
download | nextcloud-server-7e0bbd20c0f4b67d31fbe83669c26605449a48fb.tar.gz nextcloud-server-7e0bbd20c0f4b67d31fbe83669c26605449a48fb.zip |
revised coloring again
Diffstat (limited to 'files/templates')
-rw-r--r-- | files/templates/part.list.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/files/templates/part.list.php b/files/templates/part.list.php index 7fa44d0b310..54606e083e3 100644 --- a/files/templates/part.list.php +++ b/files/templates/part.list.php @@ -1,6 +1,7 @@ <?php foreach($_['files'] as $file): $simple_file_size = simple_file_size($file['size']); - $simple_size_color = 200-intval($file['size']/(1024*1024)*20); + $simple_size_color = 200-intval($file['size']/(1024*1024)*5); + 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*7); //days ago if($relative_date_color>200) $relative_date_color = 200; ?> |