]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: omit the repository owner when it is unset
authorTony Finch <redacted>
Tue, 20 Aug 2013 16:59:44 +0000 (17:59 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index a1138c1f9cd629f3d3d078a4982be608564c9b6fde16ab2b6bf873d98cd67b58..de76eb12dfb154d444030d1b1a8669524739d406086c2cc7d4d6fb1d5c005e10 100755 (executable)
@@ -6469,7 +6469,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";
        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'}) {
                print  "<tr id=\"metadata_owner\"><td>owner</td><td>" . esc_html($owner) . "</td></tr>\n";
         }
        if (defined $cd{'rfc2822'}) {
This page took 0.366069 seconds and 4 git commands to generate.