diff options
author | Tony Finch <dot@dotat.at> | 2013-08-20 17:59:44 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-20 13:00:57 -0700 |
commit | 860ccc605da1d40c0331113eb552151fa925002e (patch) | |
tree | 3dfe340c7aad48bb1f68cc507884a91f2861371e /gitweb | |
parent | gitweb: vertically centre contents of page footer (diff) | |
download | tgif-860ccc605da1d40c0331113eb552151fa925002e.tar.xz |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 2 |
1 files changed, 1 insertions, 1 deletions
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 "<div class=\"title\"> </div>\n"; print "<table class=\"projects_list\">\n" . "<tr id=\"metadata_desc\"><td>description</td><td>" . esc_html($descr) . "</td></tr>\n"; - unless ($omit_owner) { + if ($owner and not $omit_owner) { print "<tr id=\"metadata_owner\"><td>owner</td><td>" . esc_html($owner) . "</td></tr>\n"; } if (defined $cd{'rfc2822'}) { |