r57101 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57100‎ | r57101 | r57102 >
Date:13:09, 30 September 2009
Author:thomasv
Status:ok
Tags:
Comment:
table layout improvement
Modified paths:
  • /trunk/extensions/ProofreadPage/SpecialProofreadPages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/SpecialProofreadPages.php
@@ -91,13 +91,14 @@
9292 $q2 = $result->pr_q2;
9393 $q3 = $result->pr_q3;
9494 $q4 = $result->pr_q4;
95 -
 95+ $num_void = $size-$q1-$q2-$q3-$q4-$q0;
 96+ $void_cell = $num_void ? "<td align=center style='border-style:dotted;background:#ffffff;border-width:1px;' width=\"{$num_void}\"></td>" : "";
 97+
9698 $pages = wfMsg( 'proofreadpage_pages', $size );
9799
98100 $output = "<table style=\"line-height:70%;\" border=0 cellpadding=5 cellspacing=0 >
99101 <tr valign=\"bottom\">
100 -<td>{$plink}</td>
101 -<td> [$size $pages] </td>
 102+<td style=\"white-space:nowrap;overflow:hidden;\">{$plink} [$size $pages]</td>
102103 <td>
103104 <table style=\"line-height:70%;\" border=0 cellpadding=0 cellspacing=0 >
104105 <tr>
@@ -107,6 +108,7 @@
108109 <td align=center class='quality2' width=\"$q2\"></td>
109110 <td align=center class='quality1' width=\"$q1\"></td>
110111 <td align=center class='quality0' width=\"$q0\"></td>
 112+$void_cell
111113 </tr></table>
112114 </td>
113115 </tr></table>";

Status & tagging log