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 /lib/PublicInbox/WwwListing.pm | |
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 'lib/PublicInbox/WwwListing.pm')
-rw-r--r-- | lib/PublicInbox/WwwListing.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/WwwListing.pm b/lib/PublicInbox/WwwListing.pm index 0af0fe68..365743cf 100644 --- a/lib/PublicInbox/WwwListing.pm +++ b/lib/PublicInbox/WwwListing.pm @@ -6,7 +6,7 @@ package PublicInbox::WwwListing; use strict; use warnings; -use PublicInbox::Hval qw(ascii_html prurl); +use PublicInbox::Hval qw(ascii_html prurl fmt_ts); use PublicInbox::Linkify; use PublicInbox::View; use PublicInbox::Inbox; @@ -91,7 +91,7 @@ sub new { sub ibx_entry { my ($mtime, $ibx, $env) = @_; - my $ts = PublicInbox::View::fmt_ts($mtime); + my $ts = fmt_ts($mtime); my $url = prurl($env, $ibx->{url}); my $tmp = <<""; * $ts - $url |