]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: further reduce size of attribution/timestamp
authorEric Wong <e@80x24.org>
Wed, 18 Nov 2015 19:40:22 +0000 (19:40 +0000)
committerEric Wong <e@80x24.org>
Wed, 18 Nov 2015 19:40:22 +0000 (19:40 +0000)
The "by" on the message page and "-" in the index are
unnecessary and readers should have no trouble figuring out
what the attribution/timestamp line means.

lib/PublicInbox/View.pm

index ce97f6152376ec4b591f87208d107965e55063fa..92fedd19cf715042b37bbb0f56b1a0d39274639a 100644 (file)
@@ -107,7 +107,7 @@ sub index_entry {
        }
        $rv .= "<td\nid=s$midx>" . PRE_WRAP;
        $rv .= "<b\nid=\"$id\">$subj</b>\n";
-       $rv .= "- by $from @ $ts UTC - ";
+       $rv .= "- $from @ $ts UTC - ";
        $rv .= "<a\nhref=\"#s$next\">next</a>";
        if ($prev >= 0) {
                $rv .= "/<a\nhref=\"#s$prev\">prev</a>";
@@ -875,8 +875,7 @@ sub dump_topics {
                                   qq(href="$mid/t.mbox.gz">mbox.gz</a>);
                        my $atom = qq(<a\nhref="$mid/t.atom">Atom</a>);
                        $pfx .= INDENT if $level > 0;
-                       $dst .= "$pfx- ". $attr . $n;
-                       $dst .= " - $mbox / $atom\n";
+                       $dst .= $pfx . $attr . $n . " - $mbox / $atom\n";
                        $prev_attr = $attr;
                }
        }