]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: make "No commits" in project list gray, not bold green
authorMatt McCutchen <redacted>
Thu, 28 Jun 2007 22:15:22 +0000 (18:15 -0400)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.css
gitweb.perl

index 64b91d079871f68ce2e9623aeb0461fd7915aeb7b7cb086ae8a8d2219568f45f..82fc262616666ccef820560d6bb50efa077c98a151575c7a2a08be51b5fe6f9e 100644 (file)
@@ -281,6 +281,12 @@ table.diff_tree span.file_status.copied {
   color: #70a070;
 }
 
+/* noage: "No commits" */
+table.project_list td.noage {
+       color: #808080;
+       font-style: italic;
+}
+
 /* age2: 60*60*24*2 <= age */
 table.project_list td.age2, table.blame td.age2 {
        font-style: italic;
index 3ee147c757409f3f700b4aa998c87af783f64423a66fd85d639708771240be6e..d18bf5d621575a8692749d52df47c4b81d321742f59c118c570d2f07d5615583 100755 (executable)
@@ -1527,6 +1527,7 @@ sub git_get_last_activity {
                my $age = time - $timestamp;
                return ($age, age_string($age));
        }
+       return (undef, undef);
 }
 
 sub git_get_references {
This page took 0.28167 seconds and 4 git commands to generate.