diff options
author | Eric Wong <e@yhbt.net> | 2020-08-27 22:04:59 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-28 04:25:15 +0000 |
commit | 6c853f5256f3a324c018a37a9e8a6b9fc8fdc063 (patch) | |
tree | e8cbeb6cecde0e25ea4bc16d6ea53f19a42671c7 /Documentation | |
parent | 29c5f2a6fc3b86306a5dbeadfae061d06f2bc6dd (diff) | |
download | public-inbox-6c853f5256f3a324c018a37a9e8a6b9fc8fdc063.tar.gz |
Sometimes it's useful to quickly get to threads and messages which are contemporaries of the current thread/message being focused on. This hopefully improves navigation by making: a) the top line (where $INBOX_DIR/description) is shown a link to the latest topics in search results and per-thread/per-message views. b) providing a link to contemporaries ("~YYYY-MM-DD") at around the thread overview skeleton area for per-thread and per-message views
Diffstat (limited to 'Documentation')
-rwxr-xr-x | Documentation/mknews.perl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/mknews.perl b/Documentation/mknews.perl index f053e2bf..510a4e18 100755 --- a/Documentation/mknews.perl +++ b/Documentation/mknews.perl @@ -7,6 +7,7 @@ use strict; use PublicInbox::Eml; use PublicInbox::View; +use PublicInbox::Hval qw(fmt_ts); use PublicInbox::MsgTime qw(msg_datestamp); use PublicInbox::MID qw(mids mid_escape); END { $INC{'Plack/Util.pm'} and warn "$0 should not have loaded Plack::Util\n" } @@ -91,7 +92,7 @@ sub mime2txt { my $title = $mime->header('Subject'); $title =~ s/^\s*\[\w+\]\s*//g; # [ANNOUNCE] or [ANN] my $dtime = msg_datestamp($mime->header_obj); - $title .= ' - ' . PublicInbox::View::fmt_ts($dtime) . ' UTC'; + $title .= ' - ' . fmt_ts($dtime) . ' UTC'; print $out $title, "\n" or die; my $uline = '=' x length($title); print $out $uline, "\n\n" or die; |