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

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 22, 2013, 3:12 p.m.
Message ID <a04b5c66233181d72f20.1377184342@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2251/
State Superseded
Commit 393e9f1fc4d24ba015ad3a8ec5c503fd4b445df1
Headers show

Comments

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

Patch

diff -r 054291a49c17 -r a04b5c662331 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 054291a49c17 -r a04b5c662331 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>