changeset 19766:393e9f1fc4d2

paper: show current search mode name at search results
author Alexander Plavin <alexander@plav.in>
date Fri, 06 Sep 2013 13:30:56 +0400
parents 521c373ff134
children d45010687268
files mercurial/templates/paper/search.tmpl tests/test-hgweb-commands.t
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templates/paper/search.tmpl	Fri Sep 06 13:30:56 2013 +0400
+++ b/mercurial/templates/paper/search.tmpl	Fri Sep 06 13:30:56 2013 +0400
@@ -23,6 +23,10 @@
 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
 <h3>searching for '{query|escape}'</h3>
 
+<p>
+Assuming {modedesc}.
+</p>
+
 <form class="search" action="{url|urlescape}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30" value="{query|escape}"></p>
--- a/tests/test-hgweb-commands.t	Fri Sep 06 13:30:56 2013 +0400
+++ b/tests/test-hgweb-commands.t	Fri Sep 06 13:30:56 2013 +0400
@@ -507,6 +507,10 @@
   <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
   <h3>searching for 'base'</h3>
   
+  <p>
+  Assuming literal keyword search.
+  </p>
+  
   <form class="search" action="/log">
   
   <p><input name="rev" id="search1" type="text" size="30" value="base"></p>