about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-12-28 20:38:59 +0000
committerEric Wong <e@80x24.org>2018-12-28 20:38:59 +0000
commit0c57f0cfe8ab04dedad26d21e7e1589858b351dc (patch)
tree97bae6fc0e3be0248dad7ebf39bfeb72051e4d55
parent7715c70e5a8667fbd9eade0cffb6ab05a714dd5d (diff)
downloadpublic-inbox-0c57f0cfe8ab04dedad26d21e7e1589858b351dc.tar.gz
Unfortunately, long inbox names and URLs don't really display well
with my gigantic fonts...
-rw-r--r--lib/PublicInbox/WwwStream.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm
index ec75f16c..d39f5511 100644
--- a/lib/PublicInbox/WwwStream.pm
+++ b/lib/PublicInbox/WwwStream.pm
@@ -99,11 +99,11 @@ sub _html_end {
                 push @urls, $u =~ /\Ahttps?:/ ? qq(<a\nhref="$u">$u</a>) : $u;
         }
 
-        if (scalar(@urls) == 1) {
-                $urls .= " git clone --mirror $urls[0]";
-        } else {
+        if (defined($part) || scalar(@urls) > 1) {
                 $urls .= "\n" .
                         join("\n", map { "\tgit clone --mirror $_" } @urls);
+        } else {
+                $urls .= " git clone --mirror $urls[0]";
         }
         if (defined $part) {
                 my $addrs = $obj->{address};