git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/4] gitweb: omit the repository owner when it is unset

From
Tony Finch <dot@dotat.at>
Date
Jul 2, 2013, 16:24 UTC
Message-ID
<E1UyevA-0003df-Jo@hermes-2.csi.cam.ac.uk>
In-Reply-To
<20130714234915.GB19057@google.com>

On the repository summary page, leave the whole owner line out if the repo does not have an owner, rather than displaying a labelled empty field..

Signed-off-by: Tony Finch <dot@dotat.at>
---
 gitweb/gitweb.perl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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'}) {
-- 
1.8.3.1.605.g85318f5
Previous: Jonathan NiederNext: Tony Finch
Message 4 of 12 in “gitweb: Ensure OPML text fits inside its box.”
  1. gitweb: Ensure OPML text fits inside its box.Tony Finch, Jul 9, 2013
  2. gitweb: vertically centre contents of page footerTony Finch, Jul 9, 2013
  3. Jonathan NiederJul 14, 2013
  4. 3/4 gitweb: omit the repository owner when it is unsetTony Finch, Jul 2, 2013
  5. 1/4 gitweb: Ensure OPML text fits inside its box.Tony Finch, Jul 9, 2013
  6. 2/4 gitweb: vertically centre contents of page footerTony Finch, Jul 9, 2013
  7. 4/4 gitweb: make search help link less uglyTony Finch, Jul 9, 2013
  8. Tony FinchJul 15, 2013
  9. Jakub NarębskiAug 3, 2013
  10. Tony FinchAug 5, 2013
  11. Jakub NarębskiAug 3, 2013
  12. Tony FinchAug 5, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.