diff options
author | Colin Smith <colin@pfsense.org> | 2005-06-20 04:21:59 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-06-20 04:21:59 +0000 |
commit | 9345a13ce76419dfd060a8e488980e11d1162fdc (patch) | |
tree | bb3977aac751981f1bee66ecf99f6269566fbcf0 /usr/local | |
parent | a1a4edb7544c2fbac84166a76d045d929e100dff (diff) | |
download | pfsense-9345a13ce76419dfd060a8e488980e11d1162fdc.zip pfsense-9345a13ce76419dfd060a8e488980e11d1162fdc.tar.gz |
Add "size" column.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/pkg_mgr.php | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php index 54a7a1a..cc620dd 100755 --- a/usr/local/www/pkg_mgr.php +++ b/usr/local/www/pkg_mgr.php @@ -70,13 +70,8 @@ include("fbegin.inc"); <?php if ($savemsg) print_info_box($savemsg); ?> <?php -if(in_array($g['platform'], $g['nopkg_platforms'])) { - print_info_box("Packages are not available on this platform."); - include("fbegin.inc"); - echo '</body></html>'; -} - $pkg_info = get_pkg_info('all', array('name', 'category', 'website', 'version', 'status', 'descr')); +$pkg_sizes = get_pkg_sizes(); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> @@ -91,7 +86,8 @@ $pkg_info = get_pkg_info('all', array('name', 'category', 'website', 'version', <tr> <td width="10%" class="listhdrr">Package Name</td> <td width="25%" class="listhdrr">Category</td> - <td width="5%" class="listhdrr">Status</td> + <td width="20%" class="listhdrr">Size</td> + <td width="5%" class="listhdrr">Status</td> <td width="50%" class="listhdr">Description</td> </tr> @@ -117,8 +113,15 @@ $pkg_info = get_pkg_info('all', array('name', 'category', 'website', 'version', </td> <td class="listlr"> <?= $index['category'] ?> - </td> - <td class="listlr"> + </td> + <?php + $size = get_package_install_size($index['name'], $pkg_sizes); + $size = squash_from_bytes($size[$index['name']], 1); + ?> + <td class="listlr"> + <?= $size ?> + </td> + <td class="listlr"> <?= $index['status'] ?> <br> <?= $index['version'] ?> |