summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-21 00:03:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-21 00:03:22 +0000
commit3a003406ac8c3f2374fc443910cce4ca0b3ec7fc (patch)
tree7d01b17119c630193189bcfc616ab6531bf03c60 /usr
parent0025d774aa3adb94af7276e282cba6a489948c87 (diff)
downloadpfsense-3a003406ac8c3f2374fc443910cce4ca0b3ec7fc.zip
pfsense-3a003406ac8c3f2374fc443910cce4ca0b3ec7fc.tar.gz
* Add version column with upgrade link
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_mgr_installed.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php
index 50887b3..e82e73c 100755
--- a/usr/local/www/pkg_mgr_installed.php
+++ b/usr/local/www/pkg_mgr_installed.php
@@ -60,8 +60,9 @@ $config = $config_tmp;
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="25%" class="listhdrr">Package Name</td>
- <td width="25%" class="listhdrr">Category</td>
- <td width="50%" class="listhdr">Description</td>
+ <td width="20%" class="listhdrr">Category</td>
+ <td width="10%" class="listhdrr">Version</td>
+ <td width="45%" class="listhdr">Description</td>
</tr>
<?php
@@ -77,6 +78,19 @@ $config = $config_tmp;
<td class="listlr">
<?= $pkg['category'] ?>
</td>
+ <td class="listlr">
+ <?php
+ $latest_version = get_latest_package_version($pkg['name']);
+ if($pkg['version']) <> $latest_version) {
+ /* a new version of the package is available */
+ $id = get_pkg_id($pkg['name']);
+ echo "Upgrade: <a href='pkg_mgr_delete.php?upgrade=true&id={$id}'>" . $latest_version . "</a>";
+ echo "<br>Installed: " . $pkg['version'];
+ } else {
+ echo $pkg['version'];
+ }
+ ?>
+ </td>
<td class="listbg">
<font color="#FFFFFFF">
<?= $pkg['descr'] ?>
OpenPOWER on IntegriCloud