Bug#1019872: patch

Thomas Lange <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <25380.15170.710223.426668__6900.18719048879$1663319017$gmane$org@cs.uni-koeln.de>

Here's a patch that removes the Diffstat column. I could not test it
because I think it will not run in my local directory.

What do you think about this patch? Does it look OK?


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>';
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.