Skip to content

Commit 860ccc6

Browse files
fanf2gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1201f0a commit 860ccc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6463,7 +6463,7 @@ sub git_summary {
64636463
print "<div class=\"title\">&nbsp;</div>\n";
64646464
print "<table class=\"projects_list\">\n" .
64656465
"<tr id=\"metadata_desc\"><td>description</td><td>" . esc_html($descr) . "</td></tr>\n";
6466-
unless ($omit_owner) {
6466+
if ($owner and not $omit_owner) {
64676467
print "<tr id=\"metadata_owner\"><td>owner</td><td>" . esc_html($owner) . "</td></tr>\n";
64686468
}
64696469
if (defined $cd{'rfc2822'}) {

0 commit comments

Comments
 (0)