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