diff options
author | Eric Wong <e@80x24.org> | 2016-01-04 01:01:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-01-04 01:01:41 +0000 |
commit | 0d613bfde45bdf3e28d1a247ffc59e6f805dc64a (patch) | |
tree | 7fa22b413a8f165e20eb318c286e2aef62784d55 /lib/PublicInbox/View.pm | |
parent | 19a602120d1e593c8045672e842f38b29910db03 (diff) | |
download | public-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.pm | 4 |
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>" . |