diff options
author | Eric Wong <e@80x24.org> | 2016-01-30 23:28:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-01-30 23:28:37 +0000 |
commit | d1d3a440791053cdaae09069dc6e11a8fe28103d (patch) | |
tree | 079bcb9894f1cbc272b291bd2e8932380e131b5a | |
parent | 38017321d47e14707d208c92e13c16e242c5d3f2 (diff) | |
download | public-inbox-d1d3a440791053cdaae09069dc6e11a8fe28103d.tar.gz |
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.
-rw-r--r-- | lib/PublicInbox/View.pm | 7 |
1 files changed, 5 insertions, 2 deletions
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 (<a\nhref=\"#b\">skip</a> / " . - $expand . ")\n"; + $$dst .= "~$nr messages ($expand"; + if ($nr > MAX_INLINE_QUOTED) { + $$dst .= qq! / <a\nhref="#b">[scroll down]</a>!; + } + $$dst .= ")\n"; my $subj = $srch->subject_path($cur->header('Subject')); my $state = { |