about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-30 23:28:37 +0000
committerEric Wong <e@80x24.org>2016-01-30 23:28:37 +0000
commitd1d3a440791053cdaae09069dc6e11a8fe28103d (patch)
tree079bcb9894f1cbc272b291bd2e8932380e131b5a /lib/PublicInbox/View.pm
parent38017321d47e14707d208c92e13c16e242c5d3f2 (diff)
downloadpublic-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.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm7
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 = {