aboutsummaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorMatt McCutchen <hashproduct@gmail.com>2007-06-28 18:15:22 -0400
committerJunio C Hamano <gitster@pobox.com>2007-07-07 14:18:29 -0700
commitc956395e2bf94a50fe843935605914573f4c7787 (patch)
treed7adf81493e2f498828ef7243e5b49c33e05028f /gitweb/gitweb.perl
parent40375a83d2bc3e2c86f998fe47fef573502a9922 (diff)
downloadgit-c956395e2bf94a50fe843935605914573f4c7787.tar.gz
git-c956395e2bf94a50fe843935605914573f4c7787.tar.xz
gitweb: make "No commits" in project list gray, not bold green
A missing return statement in git_get_last_activity made gitweb think a project with no commits was in age class "age0", so the "No commits" appeared in bold green, which was ridiculous. I added the return so those projects get "noage" and added a block to gitweb.css to format the "No commits" text gray. Signed-off-by: Matt McCutchen <hashproduct@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-xgitweb/gitweb.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 4eb7832b4..dc609f4f8 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1526,6 +1526,7 @@ sub git_get_last_activity {
my $age = time - $timestamp;
return ($age, age_string($age));
}
+ return (undef, undef);
}
sub git_get_references {