aboutsummaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorTony Finch <dot@dotat.at>2013-08-20 17:59:44 +0100
committerJunio C Hamano <gitster@pobox.com>2013-08-20 13:00:57 -0700
commit860ccc605da1d40c0331113eb552151fa925002e (patch)
tree3dfe340c7aad48bb1f68cc507884a91f2861371e /gitweb/gitweb.perl
parent1201f0a76cbc006566532577c1cc9123412ecdab (diff)
downloadgit-860ccc605da1d40c0331113eb552151fa925002e.tar.gz
git-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/gitweb.perl')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 8d69ada04..c029b9811 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -6463,7 +6463,7 @@ sub git_summary {
print "<div class=\"title\">&nbsp;</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'}) {