diff options
author | k-paulius <k.dash.paulius@gmail.com> | 2016-02-14 22:49:23 -0600 |
---|---|---|
committer | k-paulius <k.dash.paulius@gmail.com> | 2016-02-14 22:49:23 -0600 |
commit | 4027d64e6afceac9aee318aa213490e0597eb430 (patch) | |
tree | 80711683b94e7095fb3efd4eca628b1366e8b1e4 /src/usr/local/www/diag_tables.php | |
parent | f3c1dfa70fba451c2d3aad3aeb0997b7cc1b619f (diff) | |
download | pfsense-4027d64e6afceac9aee318aa213490e0597eb430.zip pfsense-4027d64e6afceac9aee318aa213490e0597eb430.tar.gz |
Only display the message if there are no entries in the table, do not display empty panel and table.
Diffstat (limited to 'src/usr/local/www/diag_tables.php')
-rw-r--r-- | src/usr/local/www/diag_tables.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php index 8a160d3..520775d 100644 --- a/src/usr/local/www/diag_tables.php +++ b/src/usr/local/www/diag_tables.php @@ -208,6 +208,11 @@ events.push(function() { //]]> </script> +<?php +if (empty($entries)) { + print_info_box(gettext("No entries exist in this table."), 'warning', false); +} else { +?> <div class="panel panel-default"> <div class="panel-heading"><h2 class="panel-title"><?=$displayname?></h2></div> <div class="panel-body"> @@ -242,7 +247,6 @@ events.push(function() { </div> <?php -if (empty($entries)) { - print_info_box(gettext("No entries exist in this table."), 'warning', false); } + include("foot.inc"); |