gitweb: omit the repository owner when it is unset

On the repository summary page, leave the owner line out if the repo does not have an owner, rather than displaying a labelled empty field. This does not affect the owner column in the projects list page, which is present unless $omit_owner is true. Signed-off-by: Tony Finch <dot@dotat.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Tony Finch committed Aug 20, 2013 at 17:59 UTC 860ccc605da1d40c0331113eb552151fa925002e
1 file changed +1 -1
gitweb/gitweb.perl
+1 -1
@@ -6463,7 +6463,7 @@ sub git_summary {
6463 print "<div class=\"title\">&nbsp;</div>\n";
6464 print "<table class=\"projects_list\">\n" .
6465 "<tr id=\"metadata_desc\"><td>description</td><td>" . esc_html($descr) . "</td></tr>\n";
6466 - unless ($omit_owner) {
6466 + if ($owner and not $omit_owner) {
6467 print "<tr id=\"metadata_owner\"><td>owner</td><td>" . esc_html($owner) . "</td></tr>\n";
6468 }
6469 if (defined $cd{'rfc2822'}) {