aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <lange@debian.org>2023-05-24 10:43:05 +0200
committerThomas Lange <lange@debian.org>2023-05-24 10:43:05 +0200
commitbd010f7b3f40ce2c53a9fd40d8ef1519ebcb30c5 (patch)
tree550d726a794d24e08c309608fb853086667bdc4e
parent00bad1743ac83c43e4c7f42d59099eea8053bc70 (diff)
remove diffstat column and setDiffstat function, since it broken since years. It uses the outdated url webwml.alioth.debian.org
-rw-r--r--english/devel/website/stats/diffstat.js16
-rwxr-xr-xstattrans.pl3
2 files changed, 0 insertions, 19 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); });
-}
diff --git a/stattrans.pl b/stattrans.pl
index c02fb8a5b75..c9db9fda803 100755
--- a/stattrans.pl
+++ b/stattrans.pl
@@ -489,10 +489,8 @@ foreach $lang (@search_in) {
} else {
$o_body .= sprintf "<td><a title=\"%s\" href=\"$opt_b/%s\">%s</a></td>", $hits, $base, $base;
}
- my $stattd = sprintf '<td style=\'font-family: monospace\' title=\'<gettext domain="stats">Click to fetch diffstat data</gettext>\' onClick="setDiffstat(\'%s\', \'%s\', \'%s\', this)">+/-</td>', $file, $transversion{"$lang/$file"}, $version{"$orig/$file"};
if (!defined $status_db{$lang}) {
$o_body .= sprintf "<td>%s</td>", $msg;
- $o_body .= $stattd;
}
if ($msg eq '<gettext domain="stats">Wrong translation version</gettext>' || $msg eq '<gettext domain="stats">The original no longer exists</gettext>') {
if (defined $status_db{$lang}) {
@@ -637,7 +635,6 @@ foreach $lang (@search_in) {
print HTML '<th><gettext domain="stats">Diff</gettext></th>';
} else {
print HTML '<th><gettext domain="stats">Comment</gettext></th>'."\n";
- print HTML '<th><gettext domain="stats">Diffstat</gettext></th>'."\n";
print HTML '<th><gettext domain="stats">Git command line</gettext></th>';
}
print HTML '<th><gettext domain="stats">Log</gettext></th>';

© 2014-2024 Faster IT GmbH | imprint | privacy policy