Skip to content
Permalink
Browse files
about translators: grey background, centered flags, replace flag for …
…german
  • Loading branch information
jef-n committed Nov 7, 2017
1 parent a102490 commit cb8fc6860d991ecf6cd3b95afb3b604976378b6b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
@@ -1,4 +1,4 @@
<style>table {font-size:80%;}th {text-align:left; }.bartodo{ background-color:red;width:100px;height:20px;}.bardone{ background-color:green;width:80px;height:20px;font-size:80%;text-align:center;padding-top:4px;height:16px;color:white;}</style><table><tr><th colspan="2" style="width:250px;">Language</th><th>Finished %</th><th>Translators</th></tr>
<style>body { font-family:sans-serif; background-color:#d3d3d3; }table {font-size:80%;}th {text-align:left; }.bartodo{ background-color:red;width:100px;height:20px;}.bardone{ background-color:green;width:80px;height:20px;font-size:80%;text-align:center;padding-top:4px;height:16px;color:white;}</style><table><tr><th colspan="2" style="width:250px;">Language</th><th>Finished %</th><th>Translators</th></tr>

<tr><td><img src="qrc:/images/flags/de.svg" height="20"></td><td>German</td><td><div title="finished:18238 unfinished:0 untranslated:0" class="bartodo"><div class="bardone" style="width:100px">100.0</div></div></td><td>Jürgen E. Fischer, Stephan Holl, Otto Dassau, Werner Macho</td></tr>
<tr><td><img src="qrc:/images/flags/eu.svg" height="20"></td><td>Basque</td><td><div title="finished:18238 unfinished:0 untranslated:0" class="bartodo"><div class="bardone" style="width:100px">100.0</div></div></td><td>Asier Sarasua Garmendia, Irantzu Alvarez</td></tr>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -176,7 +176,7 @@
print "<head>";
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>";
print "<style>";
print "body{font-family:sans-serif;}";
print "body {font-family:sans-serif; background-color:#d3d3d3; }";
print "table {font-size:80%;border-collapse: collapse;}";
print "td {border-left:solid 1px #aaaaaa;border-right:solid 1px #aaaaaa;padding:1px 10px;}";
print ".bartodo{ background-color:red;width:100px;height:20px;}";
@@ -187,7 +187,7 @@
for my $l (sort { $b->{percentage} <=> $a->{percentage} } @lang) {
last if $l->{percentage} < 35;
printf "\n<tr>"
. '<td><img src="flags/%s.svg" height="20"></td><td nowrap>%s</td>'
. '<td align="center"><img src="flags/%s.svg" height="20"></td><td nowrap>%s</td>'
. '<td nowrap>%s</td><td>%d</td><td>%d</td><td>%d</td>'
. '<td><div class="bartodo"><div class="bardone" style="width:%dpx">%.1f</div></div></td>'
. '<td>%s</td>'
@@ -201,6 +201,7 @@
print "</table></body></html>\n";
} else {
print "<style>";
print "body { font-family:sans-serif; background-color:#d3d3d3; }";
print "table {font-size:80%;}";
print "th {text-align:left; }";
print ".bartodo{ background-color:red;width:100px;height:20px;}";
@@ -211,7 +212,7 @@
for my $l (sort { $b->{percentage} <=> $a->{percentage} } @lang) {
last if $l->{percentage} < 35;
printf "\n<tr>"
. '<td><img src="qrc:/images/flags/%s.svg" height="20"></td><td>%s</td>'
. '<td align="center"><img src="qrc:/images/flags/%s.svg" height="20"></td><td>%s</td>'
. '<td><div title="finished:%d unfinished:%d untranslated:%d" class="bartodo"><div class="bardone" style="width:%dpx">%.1f</div></div></td>'
. '<td>%s</td>'
. '</tr>',

0 comments on commit cb8fc68

Please sign in to comment.