aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2013-02-12 21:48:42 +0000
committerFilip Komar <filip@mageia.org>2013-02-12 21:48:42 +0000
commit81781a5d500662613588a4dc34ec174cc7a15631 (patch)
treec5ae345b16a07825e57be9b1b18b8578ee023367
parent70420991de11bca1dd2eec142e4e3c788ca1825c (diff)
downloadwww-81781a5d500662613588a4dc34ec174cc7a15631.tar
www-81781a5d500662613588a4dc34ec174cc7a15631.tar.gz
www-81781a5d500662613588a4dc34ec174cc7a15631.tar.bz2
www-81781a5d500662613588a4dc34ec174cc7a15631.tar.xz
www-81781a5d500662613588a4dc34ec174cc7a15631.zip
better readability of report page
-rw-r--r--langs/report.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/langs/report.php b/langs/report.php
index e24602a55..7ee0676b4 100644
--- a/langs/report.php
+++ b/langs/report.php
@@ -53,7 +53,7 @@
$stats = array();
$stats['en']['files'] = 0;
- $diff_link = '<a href="diff.php?s=%s&l=%s" title="see detailed diff">';
+ $diff_link = '<a href="diff.php?s=%s&amp;l=%s" title="see detailed diff">';
$languages = array();
@@ -195,17 +195,22 @@
);
}
$s .= $cols;
- $s .= '</tr>';
+ $s .= '</tr>' . PHP_EOL;
$languages[$progress . '-' . $l] = $s;
}
$en_language = array_shift($languages); // shift English for proper sorting
krsort($languages, SORT_NUMERIC);
array_unshift($languages, $en_language); // unshift English back
- $s = implode($languages);
$enFiles = array_map(function ($e) { return str_replace('en/', '', $e); }, $enFiles);
- $thfiles = '<th>' . implode('</th><th>', $enFiles) . '</th>';
+ $thfiles = '<th>' . implode('</th><th>', $enFiles) . '</th>' . PHP_EOL;
$count = count($otherLangs);
+ $chunks = array_chunk($languages, 8);
+ $table_body = array();
+ foreach ($chunks as $chunk) {
+ $table_body = array_merge($table_body, $chunk, array(count($chunk) >= 4 ? '<tr><th>&nbsp;</th><th>File</th>' . $thfiles : ''));
+ }
+ $s = implode($table_body);
echo <<<S
<table border="1">