mirror of
https://github.com/git/git.git
synced 2024-09-28 04:10:41 +02:00
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>
This commit is contained in:
parent
1201f0a76c
commit
860ccc605d
@ -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'}) {
|
||||
|
Loading…
Reference in New Issue
Block a user