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

login
register
mail settings
Submitter Alexander Plavin
Date Sept. 11, 2013, 4:54 p.m.
Message ID <36cc93b25ebd00ebfc7f.1378918442@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2425/
State Accepted
Commit 393e9f1fc4d24ba015ad3a8ec5c503fd4b445df1
Headers show

Comments

Alexander Plavin - Sept. 11, 2013, 4:54 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1378459856 -14400
#      Fri Sep 06 13:30:56 2013 +0400
# Node ID 36cc93b25ebd00ebfc7fd86dbf6e930f30d3d9c2
# Parent  c519a51c80a73cc2388458b4d5f5f92e594d0532
paper: show current search mode name at search results

Patch

diff -r c519a51c80a7 -r 36cc93b25ebd mercurial/templates/paper/search.tmpl
--- 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>
diff -r c519a51c80a7 -r 36cc93b25ebd tests/test-hgweb-commands.t
--- 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
@@ -493,6 +493,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>