diff options
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r-- | src/usr/local/www/index.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index c9b60a8..e2e792b 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -300,6 +300,17 @@ if ($config['widgets'] && $config['widgets']['sequence'] != "") { } } +## Get the configured options for Show/Hide available widgets panel. +$dashboard_available_widgets_hidden = isset($config['system']['webgui']['dashboardavailablewidgetspanel']) ? false : true; + +if ($dashboard_available_widgets_hidden) { + $panel_state = 'out'; + $panel_body_state = 'in'; +} else { + $panel_state = 'in'; + $panel_body_state = 'out'; +} + ## Set Page Title and Include Header $pgtitle = array(gettext("Status"), gettext("Dashboard")); include("head.inc"); @@ -312,7 +323,7 @@ pfSense_handle_custom_code("/usr/local/pkg/dashboard/pre_dashboard"); ?> -<div class="panel panel-default" id="widget-available"> +<div class="panel panel-default collapse <?=$panel_state?>" id="widget-available"> <div class="panel-heading"> <h2 class="panel-title"><?=gettext("Available Widgets"); ?> <span class="widget-heading-icon"> @@ -322,7 +333,7 @@ pfSense_handle_custom_code("/usr/local/pkg/dashboard/pre_dashboard"); </span> </h2> </div> - <div id="widget-available_panel-body" class="panel-body collapse out"> + <div id="widget-available_panel-body" class="panel-body collapse <?=$panel_body_state?>"> <div class="content"> <div class="row"> <?php |