From f9ddbc4925fe250ce678182375b26f018f2c525e Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Sat, 30 Jul 2011 11:00:25 +0200 Subject: documented file size and date color calculation part --- files/templates/part.list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files/templates') diff --git a/files/templates/part.list.php b/files/templates/part.list.php index 9ed3494732d..3713d483b00 100644 --- a/files/templates/part.list.php +++ b/files/templates/part.list.php @@ -1,10 +1,10 @@ Nothing in here. Upload something!'; foreach($_['files'] as $file): $simple_file_size = simple_file_size($file['size']); - $simple_size_color = 200-intval($file['size']/(1024*1024)*2); + $simple_size_color = 200-intval($file['size']/(1024*1024)*2); // the bigger the file, the darker the shade of grey 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 + $relative_date_color = round((time()-$file['mtime'])/60/60/24*14); // the older the file, the brighter the shade of grey if($relative_date_color>200) $relative_date_color = 200; ?> '> -- cgit v1.2.3