diff options
author | Thomas Lange <lange@debian.org> | 2023-05-24 10:43:05 +0200 |
---|---|---|
committer | Thomas Lange <lange@debian.org> | 2023-05-24 10:43:05 +0200 |
commit | bd010f7b3f40ce2c53a9fd40d8ef1519ebcb30c5 (patch) | |
tree | 550d726a794d24e08c309608fb853086667bdc4e /english/devel | |
parent | 00bad1743ac83c43e4c7f42d59099eea8053bc70 (diff) |
remove diffstat column and setDiffstat function, since it broken since years. It uses the outdated url webwml.alioth.debian.org
Diffstat (limited to 'english/devel')
-rw-r--r-- | english/devel/website/stats/diffstat.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/english/devel/website/stats/diffstat.js b/english/devel/website/stats/diffstat.js index 4b457cf5d7c..83ff3ada57a 100644 --- a/english/devel/website/stats/diffstat.js +++ b/english/devel/website/stats/diffstat.js @@ -105,19 +105,3 @@ function diffstat_pretty(diff_or_error) { } return topspan; } - -// Replaces contents of element with diffstat information of the file between the revisions. -// -// Args: -// path: path to the original file, relative to the english directory -// r1, r2: the revision strings to compare -// element: the element which is populated with the diffstat information -function setDiffstat(path, r1, r2, element) { - // does not send CORS: - // var base = "https://anonscm.debian.org/viewvc/webwml/webwml/"; - var base = "http://webwml.alioth.debian.org/cgi-bin/anoncvs-cors/"; - var lang = "english"; - var url = base + lang + "/" + path + "?r1=" + r1 + "&r2=" + r2 + "&view=patch"; - element.innerHTML = '...'; - getTextAsync(url, function(text) { element.replaceChild(diffstat_pretty(text), element.firstChild); }); -} |