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>
Matt McCutchen committed
Jun 28, 2007 at 18:15 UTC
c956395e2bf94a50fe843935605914573f4c7787
2 files changed
+7
gitweb/gitweb.css
+6
@@ -281,6 +281,12 @@ table.diff_tree span.file_status.copied {
281
color: #70a070;
282
}
283
284
+/* noage: "No commits" */
285
+table.project_list td.noage {
286
+ color: #808080;
287
+ font-style: italic;
288
+}
289
+
290
/* age2: 60*60*24*2 <= age */
291
table.project_list td.age2, table.blame td.age2 {
292
font-style: italic;
gitweb/gitweb.perl
+1
@@ -1526,6 +1526,7 @@ sub git_get_last_activity {
1526
my $age = time - $timestamp;
1527
return ($age, age_string($age));
1528
}
1529
+ return (undef, undef);
1530
}
1531
1532
sub git_get_references {