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-04 01:01:41 +0000
committerEric Wong <e@80x24.org>2016-01-04 01:01:41 +0000
commit0d613bfde45bdf3e28d1a247ffc59e6f805dc64a (patch)
tree7fa22b413a8f165e20eb318c286e2aef62784d55 /lib/PublicInbox/View.pm
parent19a602120d1e593c8045672e842f38b29910db03 (diff)
downloadpublic-inbox-0d613bfde45bdf3e28d1a247ffc59e6f805dc64a.tar.gz
The threaded search view is somewhat alien to new users,
so ensure we label the word "relevance" for them.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index fac0fcb1..4fc8ffc3 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -140,8 +140,8 @@ sub index_entry {
                 }
                 $rv .= " <a\nhref=\"$parent_anchor\">parent</a>";
         }
-        if (my $pct = $state->{pct}) {
-                $rv .= " [$pct->{$mid_raw}%]";
+        if (my $pct = $state->{pct}) { # used by SearchView.pm
+                $rv .= " [relevance $pct->{$mid_raw}%]";
         } elsif ($srch) {
                 if ($ctx->{flat}) {
                         $rv .= " [<a\nhref=\"${path}$href/t/#u\">threaded</a>" .