Show More
@@ -204,13 +204,23 b" document.addEventListener('DOMContentLoa" | |||
|
204 | 204 | // <div class="followlines-link"> |
|
205 | 205 | var aDiv = document.createElement('div'); |
|
206 | 206 | aDiv.classList.add('followlines-link'); |
|
207 | ||
|
208 | // <a href="/log/<rev>/<file>?patch=&linerange=..."> | |
|
209 | var a = document.createElement('a'); | |
|
207 | aDiv.textContent = 'follow history of lines ' + fromline + ':' + toline + ':'; | |
|
208 | var linesep = document.createElement('br'); | |
|
209 | aDiv.appendChild(linesep); | |
|
210 | // link to "ascending" followlines | |
|
211 | var aAsc = document.createElement('a'); | |
|
210 | 212 | var url = targetUri + '?patch=&linerange=' + fromline + ':' + toline; |
|
211 | a.setAttribute('href', url); | |
|
212 | a.textContent = 'follow lines ' + fromline + ':' + toline; | |
|
213 | aDiv.appendChild(a); | |
|
213 | aAsc.setAttribute('href', url); | |
|
214 | aAsc.textContent = 'ascending'; | |
|
215 | aDiv.appendChild(aAsc); | |
|
216 | var sep = document.createTextNode(' / '); | |
|
217 | aDiv.appendChild(sep); | |
|
218 | // link to "descending" followlines | |
|
219 | var aDesc = document.createElement('a'); | |
|
220 | aDesc.setAttribute('href', url + '&descend='); | |
|
221 | aDesc.textContent = 'descending'; | |
|
222 | aDiv.appendChild(aDesc); | |
|
223 | ||
|
214 | 224 | div.appendChild(aDiv); |
|
215 | 225 | |
|
216 | 226 | return [div, button]; |
General Comments 0
You need to be logged in to leave comments.
Login now