diff options
author | Jared Dillard <jdillard@netgate.com> | 2015-11-30 11:35:06 -0600 |
---|---|---|
committer | Jared Dillard <jdillard@netgate.com> | 2015-11-30 11:40:58 -0600 |
commit | 2587570f7c503ed24fe4d1f959148bca2edd8c1e (patch) | |
tree | f0aeaf10c90e24b9748b3d1e551af2011749be96 /src/usr/local/www/pkg_mgr_installed.php | |
parent | 7c93c95469f423919cfe3ae2624d3b8ae8136d5b (diff) | |
download | pfsense-2587570f7c503ed24fe4d1f959148bca2edd8c1e.zip pfsense-2587570f7c503ed24fe4d1f959148bca2edd8c1e.tar.gz |
clean up installed packages
Diffstat (limited to 'src/usr/local/www/pkg_mgr_installed.php')
-rw-r--r-- | src/usr/local/www/pkg_mgr_installed.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/usr/local/www/pkg_mgr_installed.php b/src/usr/local/www/pkg_mgr_installed.php index 1ca5d5a..df0f98b 100644 --- a/src/usr/local/www/pkg_mgr_installed.php +++ b/src/usr/local/www/pkg_mgr_installed.php @@ -122,14 +122,14 @@ if(empty($installed_packages)):?> } #check package version - $txtcolor = "black"; + $txtcolor = ""; $upgradeavail = false; $missing = false; $vergetstr = ""; if (isset($pkg['broken'])) { // package is configured, but does not exist in the system - $txtcolor = "red"; + $txtcolor = "text-danger"; $missing = true; $status = 'Package is configured, but not installed!'; } else if (isset($pkg['installed_version']) && isset($pkg['version'])) { @@ -141,7 +141,7 @@ if(empty($installed_packages)):?> } else if ($version_compare == '<') { // we're running an older version of the package $status = 'Upgrade available to '.$pkg['version']; - $txtcolor = "blue"; + $txtcolor = "text-warning"; $upgradeavail = true; $vergetstr = '&from=' . $pkg['installed_version'] . '&to=' . $pkg['version']; } else if ($version_compare == '=') { @@ -167,7 +167,7 @@ if(empty($installed_packages)):?> <?php } ?> </td> <td> - <font color="<?=$txtcolor?>"><?=$pkg['shortname']?></font> + <span class="<?=$txtcolor?>"><?=$pkg['shortname']?></span> </td> <td> <?=implode(" ", $pkg['categories'])?> @@ -185,7 +185,7 @@ if(empty($installed_packages)):?> <?=$pkg['desc']?> </td> <td> - <a title="<?=gettext("Remove")?>" href="pkg_mgr_install.php?mode=delete&pkg=<?=$pkg['name']?>" class="fa fa-minus-circle"></a> + <a title="<?=gettext("Remove")?>" href="pkg_mgr_install.php?mode=delete&pkg=<?=$pkg['name']?>" class="fa fa-trash"></a> <?php if($upgradeavail) { ?> <a title="<?=gettext("Update")?>" href="pkg_mgr_install.php?mode=reinstallpkg&pkg=<?=$pkg['name']?><?=$vergetstr?>" class="fa fa-refresh"></a> <?php } else { ?> @@ -203,18 +203,18 @@ if(empty($installed_packages)):?> </div> </div> <br /> -<div style="text-align: center;"> - <span> - <i class="fa fa-refresh"></i> = Update, - <i class="fa fa-check"></i> = Current, - <i class="fa fa-minus-circle"></i> = Remove, - <i class="fa fa-info"></i> = Information, - <i class="fa fa-retweet"></i> = Reinstall. - <br /> - <font color="blue"><?=gettext("Blue package name")?></font> = <?=gettext("Newer version available")?> - <br /> - <font color="red"><?=gettext("Red")?></font> = <?=gettext("Package is configured but not (fully) installed")?> - </span> +<div class="text-center"> + <p> + <i class="fa fa-refresh"></i> = Update + <i class="fa fa-check"></i> = Current + </p> + <p> + <i class="fa fa-trash"></i> = Remove + <i class="fa fa-info"></i> = Information + <i class="fa fa-retweet"></i> = Reinstall + </p> + <p><span class="text-warning"><?=gettext("Newer version available")?></span></p> + <p><span class="text-danger"><?=gettext("Package is configured but not (fully) installed")?></span></p> </div> <?php endif; ?> |