Patchwork [2,of,4,V2] paper: show current search mode name at search results

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 16, 2013, 8:06 p.m.
Message ID <22b4e49baccad46757cd.1376683589@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2189/
State Superseded
Headers show

Comments

Alexander Plavin - Aug. 16, 2013, 8:06 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1374341357 -14400
#      Sat Jul 20 21:29:17 2013 +0400
# Node ID 22b4e49baccad46757cd2f7ba2ef807e52d36c33
# Parent  f68389762caa26b62176b2982c34f3adcf347f69
paper: show current search mode name at search results

Patch

diff -r f68389762caa -r 22b4e49bacca mercurial/templates/paper/search.tmpl
--- a/mercurial/templates/paper/search.tmpl	Fri Aug 16 21:38:44 2013 +0400
+++ b/mercurial/templates/paper/search.tmpl	Sat Jul 20 21:29:17 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>
diff -r f68389762caa -r 22b4e49bacca tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t	Fri Aug 16 21:38:44 2013 +0400
+++ b/tests/test-hgweb-commands.t	Sat Jul 20 21:29:17 2013 +0400
@@ -493,6 +493,10 @@ 
   <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
   <h3>searching for 'base'</h3>
   
+  <p>
+  Assuming literal keyword.
+  </p>
+  
   <form class="search" action="/log">
   
   <p><input name="rev" id="search1" type="text" size="30" value="base"></p>