From cb0222b03d13ff4563930e9d36a2af3f9e818eed Mon Sep 17 00:00:00 2001 From: Christopher Fazendin Date: Thu, 5 May 2016 15:07:25 -0500 Subject: Added option to System > General Setup > webConfigurator to change the title of the Help menu in the navbar to either the system hostname or fqdn. (cherry picked from commit 1d12996755ee6fb9b9e163d292bdba160a926e64) --- src/usr/local/www/system.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/usr/local/www/system.php') diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php index 8105d07..0ed93bf 100644 --- a/src/usr/local/www/system.php +++ b/src/usr/local/www/system.php @@ -97,6 +97,7 @@ $pconfig['dashboardavailablewidgetspanel'] = isset($config['system']['webgui'][' $pconfig['systemlogsfilterpanel'] = isset($config['system']['webgui']['systemlogsfilterpanel']); $pconfig['systemlogsmanagelogpanel'] = isset($config['system']['webgui']['systemlogsmanagelogpanel']); $pconfig['statusmonitoringsettingspanel'] = isset($config['system']['webgui']['statusmonitoringsettingspanel']); +$pconfig['webguihostnamemenu'] = isset($config['system']['webgui']['webguihostnamemenu']); $pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']); if (!$pconfig['timezone']) { @@ -157,6 +158,12 @@ if ($_POST) { unset($config['system']['webgui']['webguifixedmenu']); } + if ($_POST['webguihostnamemenu']) { + $config['system']['webgui']['webguihostnamemenu'] = $_POST['webguihostnamemenu']; + } else { + unset($config['system']['webgui']['webguihostnamemenu']); + } + if ($_POST['dashboardcolumns']) { $config['system']['webgui']['dashboardcolumns'] = $_POST['dashboardcolumns']; } else { @@ -536,6 +543,13 @@ $section->addInput(new Form_Select( ["" => gettext("Scrolls with page"), "fixed" => gettext("Fixed (Remains visible at top of page)")] ))->setHelp("The fixed option is intended for large screens only."); +$section->addInput(new Form_Select( + 'webguihostnamemenu', + 'Hostname in Menu', + $pconfig['webguihostnamemenu'], + ["" => gettext("Default (No hostname)"), "hostonly" => gettext("Hostname only"), "fqdn" => gettext("Fully Qualified Domain Name")] +))->setHelp("Replaces the Help menu title in the Navbar with the system hostname or FQDN."); + $section->addInput(new Form_Input( 'dashboardcolumns', 'Dashboard Columns', -- cgit v1.1