From d1d3a440791053cdaae09069dc6e11a8fe28103d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 30 Jan 2016 23:28:37 +0000 Subject: view: cleanup permalink Thread: header display The word "skip" can be confusing. Instead, spell out "scroll down" for the user to read and only display that text when the thread is sufficiently long. --- lib/PublicInbox/View.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index e72243be..88ab2d2f 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -475,8 +475,11 @@ sub thread_inline { return; } - $$dst .= "~$nr messages (skip / " . - $expand . ")\n"; + $$dst .= "~$nr messages ($expand"; + if ($nr > MAX_INLINE_QUOTED) { + $$dst .= qq! / [scroll down]!; + } + $$dst .= ")\n"; my $subj = $srch->subject_path($cur->header('Subject')); my $state = { -- cgit v1.2.3-24-ge0c7