comparison mercurial/templates/static/followlines.js @ 32071:1cf0b651fa70 stable

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".
author Denis Laxalde <denis.laxalde@logilab.fr>
date Mon, 24 Apr 2017 10:48:07 +0200
parents a298f5c61b34
children 7c82bfd55d47
comparison
equal deleted inserted replaced
32070:a298f5c61b34 32071:1cf0b651fa70
211 aDiv.appendChild(linesep); 211 aDiv.appendChild(linesep);
212 // link to "ascending" followlines 212 // link to "ascending" followlines
213 var aAsc = document.createElement('a'); 213 var aAsc = document.createElement('a');
214 var url = targetUri + '?patch=&linerange=' + fromline + ':' + toline; 214 var url = targetUri + '?patch=&linerange=' + fromline + ':' + toline;
215 aAsc.setAttribute('href', url); 215 aAsc.setAttribute('href', url);
216 aAsc.textContent = 'ascending'; 216 aAsc.textContent = 'older';
217 aDiv.appendChild(aAsc); 217 aDiv.appendChild(aAsc);
218 218
219 if (!isHead) { 219 if (!isHead) {
220 var sep = document.createTextNode(' / '); 220 var sep = document.createTextNode(' / ');
221 aDiv.appendChild(sep); 221 aDiv.appendChild(sep);
222 // link to "descending" followlines 222 // link to "descending" followlines
223 var aDesc = document.createElement('a'); 223 var aDesc = document.createElement('a');
224 aDesc.setAttribute('href', url + '&descend='); 224 aDesc.setAttribute('href', url + '&descend=');
225 aDesc.textContent = 'descending'; 225 aDesc.textContent = 'newer';
226 aDiv.appendChild(aDesc); 226 aDiv.appendChild(aDesc);
227 } 227 }
228 228
229 div.appendChild(aDiv); 229 div.appendChild(aDiv);
230 230