diff options
author | k-paulius <k.dash.paulius@gmail.com> | 2016-02-13 16:22:44 -0600 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-02-14 15:09:54 -0500 |
commit | 7c945f74712d3c2ef8d1beee65b881cfcf80e6bd (patch) | |
tree | 1664e15a5b3e1202bf87ebcc62f538005d6f42c3 /src/usr/local/www/widgets | |
parent | b290833b28c3083a7cb5c8b3ec5060620274e2b9 (diff) | |
download | pfsense-7c945f74712d3c2ef8d1beee65b881cfcf80e6bd.zip pfsense-7c945f74712d3c2ef8d1beee65b881cfcf80e6bd.tar.gz |
Use print_info_box() to generate alerts
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/installed_packages.widget.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/usr/local/www/widgets/widgets/installed_packages.widget.php b/src/usr/local/www/widgets/widgets/installed_packages.widget.php index dca7c0d..d1948a9 100644 --- a/src/usr/local/www/widgets/widgets/installed_packages.widget.php +++ b/src/usr/local/www/widgets/widgets/installed_packages.widget.php @@ -73,10 +73,8 @@ if ($_REQUEST && $_REQUEST['ajax']) { }); if (empty($installed_packages)) { - print("<div class=\"alert alert-warning\" role=\"alert\">\n"); - print(" <strong>". gettext("No packages installed.") . "</strong>\n"); - print(" " . gettext('You can install packages <a href="pkg_mgr.php" class="alert-link">here</a>.') . "\n"); - print("</div>\n"); + print_info_box("<strong>". gettext("No packages installed.") . "</strong>\n" . " " . + gettext('You can install packages <a href="pkg_mgr.php" class="alert-link">here</a>.') . "\n", 'warning', false); exit; } |