Mercurial > hg
changeset 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 | f3b80537a70d |
children | 7a3fc3f3e89a |
files | mercurial/templates/gitweb/filelog.tmpl |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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}