summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40375a8)
raw | patch | inline | side by side (parent: 40375a8)
author | Matt McCutchen <hashproduct@gmail.com> | |
Thu, 28 Jun 2007 22:15:22 +0000 (18:15 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 7 Jul 2007 21:18:29 +0000 (14:18 -0700) |
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>
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>
gitweb/gitweb.css | patch | blob | history | |
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.css b/gitweb/gitweb.css
index 7908fe3b5fcf57e8cc91f4783579520a0af1725d..096313bec0a3f39596fda96d2f968181a7b7cd84 100644 (file)
--- a/gitweb/gitweb.css
+++ b/gitweb/gitweb.css
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;
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 4eb7832b4ae33dbb908d39050637b82aa6381e69..dc609f4f8622f8c1a49c1ae75e3a89c3144e0e26 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
my $age = time - $timestamp;
return ($age, age_string($age));
}
+ return (undef, undef);
}
sub git_get_references {