From: Tony Finch Date: Tue, 20 Aug 2013 16:59:44 +0000 (+0100) Subject: gitweb: omit the repository owner when it is unset X-Git-Tag: v1.8.5-rc0~150^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/860ccc605da1d40c0331113eb552151fa925002e?hp=--cc 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 Signed-off-by: Junio C Hamano --- 860ccc605da1d40c0331113eb552151fa925002e diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 8d69ada042..c029b98119 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -6463,7 +6463,7 @@ sub git_summary { print "
 
\n"; print "\n" . "\n"; - unless ($omit_owner) { + if ($owner and not $omit_owner) { print "\n"; } if (defined $cd{'rfc2822'}) {
description" . esc_html($descr) . "
owner" . esc_html($owner) . "