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-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/81afecd22e5775198eec3c5812c7af27fbcf3c4796c48f0c14030e9d6372ac0b?ds=sidebyside;hp=b9beab12361f9882f089fd46c7c13c74151ab283f8a43c533fb184e50cea7259 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 --- diff --git a/gitweb.perl b/gitweb.perl index a1138c1..de76eb1 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -6469,7 +6469,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) . "