summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_mgr_installed.php
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-02-13 16:22:44 -0600
committerStephen Beaver <sbeaver@netgate.com>2016-02-14 15:09:54 -0500
commit7c945f74712d3c2ef8d1beee65b881cfcf80e6bd (patch)
tree1664e15a5b3e1202bf87ebcc62f538005d6f42c3 /src/usr/local/www/pkg_mgr_installed.php
parentb290833b28c3083a7cb5c8b3ec5060620274e2b9 (diff)
downloadpfsense-7c945f74712d3c2ef8d1beee65b881cfcf80e6bd.zip
pfsense-7c945f74712d3c2ef8d1beee65b881cfcf80e6bd.tar.gz
Use print_info_box() to generate alerts
Diffstat (limited to 'src/usr/local/www/pkg_mgr_installed.php')
-rw-r--r--src/usr/local/www/pkg_mgr_installed.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/usr/local/www/pkg_mgr_installed.php b/src/usr/local/www/pkg_mgr_installed.php
index 93fd475..6804f67 100644
--- a/src/usr/local/www/pkg_mgr_installed.php
+++ b/src/usr/local/www/pkg_mgr_installed.php
@@ -89,11 +89,9 @@ foreach ($package_list as $pkg) {
$installed_packages[] = $pkg;
}
-if (empty($installed_packages)):?>
- <div class="alert alert-warning">
- <?=gettext("There are no packages currently installed.")?>
- </div>
-<?php else:?>
+if (empty($installed_packages)):
+ print_info_box(gettext("There are no packages currently installed."), 'warning', false);
+else:?>
<div class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title"><?=gettext('Installed Packages')?></h2></div>
<div class="table-responsive">
OpenPOWER on IntegriCloud