hgweb: change text of followlines links to "older / newer" stable
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 24 Apr 2017 10:48:07 +0200
branchstable
changeset 32071 1cf0b651fa70
parent 32070 a298f5c61b34
child 32072 05cdd5678c6b
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".
mercurial/templates/static/followlines.js
--- a/mercurial/templates/static/followlines.js	Mon Apr 24 10:32:15 2017 +0200
+++ b/mercurial/templates/static/followlines.js	Mon Apr 24 10:48:07 2017 +0200
@@ -213,7 +213,7 @@
         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 @@
             //     link to "descending" followlines
             var aDesc = document.createElement('a');
             aDesc.setAttribute('href', url + '&descend=');
-            aDesc.textContent = 'descending';
+            aDesc.textContent = 'newer';
             aDiv.appendChild(aDesc);
         }