[or-cvs] r14974: Added file information and status to right side of tables in (website/trunk/en)
ampleyfly at seul.org
ampleyfly at seul.org
Thu Jun 5 22:57:59 UTC 2008
Author: ampleyfly
Date: 2008-06-05 18:57:59 -0400 (Thu, 05 Jun 2008)
New Revision: 14974
Modified:
website/trunk/en/translation-status.wml
Log:
Added file information and status to right side of tables in translation-status, so that translators who concentrate on the right part of the table will not have to scroll their fingers off.
Modified: website/trunk/en/translation-status.wml
===================================================================
--- website/trunk/en/translation-status.wml 2008-06-05 15:03:57 UTC (rev 14973)
+++ website/trunk/en/translation-status.wml 2008-06-05 22:57:59 UTC (rev 14974)
@@ -66,11 +66,10 @@
$HTMLBASE, $htmlfile;
};
- ${$_[0]}{$priority}->{$path}->{'data'} = sprintf '<th>%s</th>
- <td%s>Revision %s%s<br>
+ my $cell_path = sprintf '<th>%s</th>', $path;
+ my $cell_en = sprintf '<td%s>Revision %s%s<br>
<a href="https://svn.torproject.org/cgi-bin/viewcvs.cgi/website/trunk/%sen/%s?root=Tor&view=markup">HEAD</a>
%s',
- $path,
($obs ? ' bgcolor="#D3D3D3"' : ''),
$files{'en'}->{$file}->{'rev'},
($obs ? ' (obsolete)' :''),
@@ -78,6 +77,7 @@
$file,
$validatorlink;
+ ${$_[0]}{$priority}->{$path}->{'data'} = $cell_path . $cell_en;
${$_[0]}{$priority}->{$path}->{'urgency'} = 0;
for my $lang (@LANGUAGES) {
@@ -138,6 +138,8 @@
};
delete $files{$lang}->{$file};
};
+
+ ${$_[0]}{$priority}->{$path}->{'data'} .= $cell_en . $cell_path;
};
};
@@ -177,7 +179,8 @@
print "<table border=1>\n";
print "<tr>\n";
print "<th>File</th>\n";
- printf("<th>%s (%s)</th>\n", $_, $LANGUAGES{$_}) for ('en', grep { $_ ne 'en' } @LANGUAGES);
+ printf("<th>%s (%s)</th>\n", $_, $LANGUAGES{$_}) for ('en', grep({ $_ ne 'en' } @LANGUAGES), 'en');
+ print "<th>File</th>\n";
print "</tr>\n";
for my $row (sort {$rows{$priority}->{$b}->{'urgency'} <=> $rows{$priority}->{$a}->{'urgency'}} keys %{$rows{$priority}}) {
More information about the tor-commits
mailing list