summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorTony Finch <dot@dotat.at>2013-08-20 16:59:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-08-20 20:00:57 (GMT)
commit860ccc605da1d40c0331113eb552151fa925002e (patch)
tree3dfe340c7aad48bb1f68cc507884a91f2861371e /gitweb
parent1201f0a76cbc006566532577c1cc9123412ecdab (diff)
downloadgit-860ccc605da1d40c0331113eb552151fa925002e.zip
git-860ccc605da1d40c0331113eb552151fa925002e.tar.gz
git-860ccc605da1d40c0331113eb552151fa925002e.tar.bz2
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-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 8d69ada..c029b98 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'}) {