fix sizes
authorMichael Wallner <mike@php.net>
Fri, 22 May 2015 10:34:15 +0000 (12:34 +0200)
committerMichael Wallner <mike@php.net>
Fri, 22 May 2015 10:34:15 +0000 (12:34 +0200)
public/index.php

index fbb285b4fa293a57b6d0b522b9e3ec1c913b7207..f06e94e9fd0d8787589447de92241ac38737d86c 100644 (file)
@@ -78,7 +78,6 @@
                                        <tr>
                                                <th class="text-left" colspan="4">Package</th>
                                                <th class="text-left">Date</th>
-                                               <th class="text-right">Size</th>
                                                <th class="text-right">Pharext</th>
                                        </tr>
                                </thead>
                                                <td class="text-left">
                                                        <a href="<?= htmlspecialchars($phar) ?>"
                                                           >ext.phar<?= htmlspecialchars($ext) ?></a>
+                                                       <small><?php
+
+                                                       $u = ["Bytes", "KB", "MB"];
+                                                       $s = filesize($phar);
+                                                       $l = floor(log10($s));
+                                                       printf("&#10507; %1.1F %s", $s/pow(10,$l-($l%3)), $u[$l/3]);
+
+                                                       ?></small>
                                                </td>
                                                <?php endforeach; ?>
                                                <?php for($i = 0; $i < 3-count($phars); ++$i) : ?>
                                                        ?>
 
                                                </td>
-                                               <td class="text-right">
-                                                       <?php
-
-                                                       $u = ["Bytes", "KB", "MB"];
-                                                       $s = filesize($phar);
-                                                       $l = floor(log10($s));
-                                                       printf("%1.1F %s\n", $s/pow(10,$l-($l%3)), $u[$l/3]);
-
-                                                       ?>
-                                               </td>
                                                <td class="text-right">
                                                        <?php
                                                        if ($meta) {