From 7e0bbd20c0f4b67d31fbe83669c26605449a48fb Mon Sep 17 00:00:00 2001
From: Jan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Date: Fri, 29 Jul 2011 03:09:30 +0200
Subject: [PATCH] revised coloring again

---
 files/css/files.css           | 2 +-
 files/templates/part.list.php | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/files/css/files.css b/files/css/files.css
index 4f217ff819c..dd2ed732c77 100644
--- a/files/css/files.css
+++ b/files/css/files.css
@@ -24,7 +24,7 @@ table th .name { float:left; margin-left:.5em; }
 table th, table td { border-bottom:1px solid #ddd; text-align:left; font-weight:normal; }
 table td { border-bottom:1px solid #eee; font-style:normal; }
 table th#headerSize, table td.filesize { width:5em; padding:0 1em; text-align:right; }
-table th#headerDate, table td.date { width:10em; padding:0 .1em 0 1em; text-align:left; }
+table th#headerDate, table td.date { width:11em; padding:0 .1em 0 1em; text-align:left; }
 table td.selection, table th.selection, table td.fileaction { width:2em; text-align:center; }
 table td.filename a.name { display:block; background-image:url('../img/file.png'); height:1.5em; vertical-align:middle; }
 table tr[data-type="dir"] td.filename a.name {font-weight:bold; }
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; ?>
-- 
GitLab