gitweb: add information about "linerange" filtering in filelog view
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 13 Apr 2017 09:59:58 +0200
changeset 31947 6c08dfd19e0b
parent 31946 f3b80537a70d
child 31948 7a3fc3f3e89a
gitweb: add information about "linerange" filtering in filelog view As for paper style, in 5e6d44511317, we display a "(following lines <fromline>:<toline> <a href='...'>back to filelog</a>)" message alongside the file name when "linerange" query parameter is present.
mercurial/templates/gitweb/filelog.tmpl
--- a/mercurial/templates/gitweb/filelog.tmpl	Mon Apr 10 18:16:30 2017 +0200
+++ b/mercurial/templates/gitweb/filelog.tmpl	Thu Apr 13 09:59:58 2017 +0200
@@ -31,7 +31,10 @@
 {nav%filenav}
 </div>
 
-<div class="title" >{file|urlescape}</div>
+<div class="title" >
+  {file|urlescape}{if(linerange,
+' (following lines {linerange}{if(descend, ', descending')} <a href="{url|urlescape}log/{symrev}/{file|urlescape}{sessionvars%urlparameter}">back to filelog</a>)')}
+</div>
 
 <table>
 {entries%filelogentry}