From patchwork Mon Apr 24 11:37:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2, of, 2, STABLE] hgweb: change text of followlines links to "older / newer" From: Denis Laxalde X-Patchwork-Id: 20283 Message-Id: <3ce5bd43168bfebfe854.1493033854@sh77.tls.logilab.fr> To: mercurial-devel@mercurial-scm.org Date: Mon, 24 Apr 2017 13:37:34 +0200 # HG changeset patch # User Denis Laxalde # Date 1493023687 -7200 # Mon Apr 24 10:48:07 2017 +0200 # Branch stable # Node ID 3ce5bd43168bfebfe854ee944cc8f6936c0a683b # Parent 713eaf91eb7e80d954de1b3a8b3963e5367e1a9b # Available At http://hg.logilab.org/users/dlaxalde/hg # hg pull http://hg.logilab.org/users/dlaxalde/hg -r 3ce5bd43168b hgweb: change text of followlines links to "older / newer" DAG directions "descending" / "ascending" arguably do not make much sense in the web interface where changes are usually listed by "dates". diff --git a/mercurial/templates/static/followlines.js b/mercurial/templates/static/followlines.js --- a/mercurial/templates/static/followlines.js +++ b/mercurial/templates/static/followlines.js @@ -213,7 +213,7 @@ document.addEventListener('DOMContentLoa var aAsc = document.createElement('a'); var url = targetUri + '?patch=&linerange=' + fromline + ':' + toline; aAsc.setAttribute('href', url); - aAsc.textContent = 'ascending'; + aAsc.textContent = 'older'; aDiv.appendChild(aAsc); if (!isHead) { @@ -222,7 +222,7 @@ document.addEventListener('DOMContentLoa // link to "descending" followlines var aDesc = document.createElement('a'); aDesc.setAttribute('href', url + '&descend='); - aDesc.textContent = 'descending'; + aDesc.textContent = 'newer'; aDiv.appendChild(aDesc); }