Mercurial > hg
diff mercurial/templates/gitweb/filelog.tmpl @ 31947:6c08dfd19e0b
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.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Thu, 13 Apr 2017 09:59:58 +0200 |
parents | 0f39055c9be5 |
children | cb5123eff7d1 |
line wrap: on
line diff
--- 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}