diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-01-20 06:22:16 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-01-20 06:22:16 -0800 |
commit | c05363c8ca124772f7d36efde711af27a3d9f898 (patch) | |
tree | 83a6a513624c9d51b34dd648d147c9d28b26f7e5 /src/usr/local/www/head.inc | |
parent | 62a4f54c37166414e9e62d2d484ec4e5f76a92d2 (diff) | |
download | pfsense-c05363c8ca124772f7d36efde711af27a3d9f898.zip pfsense-c05363c8ca124772f7d36efde711af27a3d9f898.tar.gz |
Special Panels - Show/Hide
Add configuration option to show or hide special panels.
When a panel is hidden a button is displayed on the page title bar to toggle the panel display.
Diffstat (limited to 'src/usr/local/www/head.inc')
-rwxr-xr-x | src/usr/local/www/head.inc | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index e94cf22..13091fc 100755 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -461,8 +461,32 @@ if (($pagename === "index.php") && ($numColumns > 2)) { } ?> <ul class="context-links"> -<?php + <?php if ($dashboard_available_widgets_hidden): ?> + <li> + <a onclick="$('#widget-available').toggle(360);" title="<?=gettext("Show/Hide available widgets panel")?>"> + <i class="btn-sm btn-breadcrumbbar">Widgets</i> + </a> + </li> + <?php endif?> + + <?php if ($system_logs_filter_form_hidden): ?> + <li> + <a onclick="$('#filter-form').toggle(360)" title="<?=gettext("Show/Hide log filter panel")?>"> + <i class="btn-sm btn-breadcrumbbar">Filter</i> + </a> + </li> + <?php endif ?> + + <?php if ($system_logs_manage_log_form_hidden): ?> + <li> + <a onclick="$('#manage-log-form').toggle(360)" title="<?=gettext("Show/Hide manage log panel")?>"> + <i class="btn-sm btn-breadcrumbbar">Manage Log</i> + </a> + </li> + <?php endif ?> + +<?php if (!$hide_service_status && !empty($shortcuts[$shortcut_section]['service'])) { $ssvc = array(); switch ($shortcut_section) { |