{"thread":{"id":"8768","subject":"[PATCH] gitweb: make \"No commits\" in project list gray, not bold green","startedAt":"2007-06-28T22:15:22Z","lastAt":"2007-06-28T22:15:22Z","messageCount":1,"participants":["Matt McCutchen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"46006","messageId":"1183068922.6108.8.camel@mattlaptop2","threadId":"8768","inReplyTo":null,"subject":"[PATCH] gitweb: make \"No commits\" in project list gray, not bold green","fromName":"Matt McCutchen","fromEmail":"hashproduct@gmail.com","sentAt":"2007-06-28T22:15:22Z","receivedAt":"2007-06-28T22:15:22Z","isPatch":true,"sender":{"key":"matt@mattmccutchen.net","avatar":"https://avatars.githubusercontent.com/u/8885753?v=4"},"body":"A missing return statement in git_get_last_activity made gitweb think\na project with no commits was in age class \"age0\", so the \"No commits\"\nappeared in bold green, which was ridiculous.  I added the return so\nthose projects get \"noage\" and added a block to gitweb.css to format\nthe \"No commits\" text gray.\n\nSigned-off-by: Matt McCutchen <hashproduct@gmail.com>\n---\n\nWhen I visited http://repo.or.cz/ , this bug jumped out at me!\n\n gitweb/gitweb.css  |    6 ++++++\n gitweb/gitweb.perl |    1 +\n 2 files changed, 7 insertions(+), 0 deletions(-)\n\ndiff --git a/gitweb/gitweb.css b/gitweb/gitweb.css\nindex 7908fe3..096313b 100644\n--- a/gitweb/gitweb.css\n+++ b/gitweb/gitweb.css\n@@ -281,6 +281,12 @@ table.diff_tree span.file_status.copied {\n   color: #70a070;\n }\n \n+/* noage: \"No commits\" */\n+table.project_list td.noage {\n+\tcolor: #808080;\n+\tfont-style: italic;\n+}\n+\n /* age2: 60*60*24*2 <= age */\n table.project_list td.age2, table.blame td.age2 {\n \tfont-style: italic;\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 7b0e110..b251c44 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -1528,6 +1528,7 @@ sub git_get_last_activity {\n \t\tmy $age = time - $timestamp;\n \t\treturn ($age, age_string($age));\n \t}\n+\treturn (undef, undef);\n }\n \n sub git_get_references {\n-- \n1.5.2.2.552.gc32f\n"}]}