diff options
author | jim-p <jimp@pfsense.org> | 2012-08-15 22:18:53 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-08-15 22:18:53 -0400 |
commit | 391abfcfe42a1156d252e30d049fbafc47dcf790 (patch) | |
tree | 8cba703b3084e44eefe3a079fc85490919168e21 /usr/local/www/fbegin.inc | |
parent | 7468a29fa001983f0e4cc5656c4d6af294894edc (diff) | |
download | pfsense-391abfcfe42a1156d252e30d049fbafc47dcf790.zip pfsense-391abfcfe42a1156d252e30d049fbafc47dcf790.tar.gz |
Extend the shortcuts code and link back from Status > Services also.
Diffstat (limited to 'usr/local/www/fbegin.inc')
-rwxr-xr-x | usr/local/www/fbegin.inc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index aa2151c..6766dd6 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -406,19 +406,13 @@ if (!$hide_service_status && !empty($shortcuts[$shortcut_section]['service'])) { echo get_service_status_icon($ssvc, false); echo get_service_control_links($ssvc, true); } -} ?> -<?php if(!empty($shortcut_section) && !empty($shortcuts[$shortcut_section]['main']) && ($_SERVER['SCRIPT_NAME'] != "/" . $shortcuts[$shortcut_section]['main'])): ?> - -<a href="<?php echo $shortcuts[$shortcut_section]['main']; ?>" title="<?php echo gettext("Main page for this section"); ?>"><img style="vertical-align:middle" src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_plus.gif" border="0"></a> -<?php endif; ?> -<?php if(!empty($shortcut_section) && !empty($shortcuts[$shortcut_section]['status'])): ?> +} -<a href="<?php echo $shortcuts[$shortcut_section]['status']; ?>" title="<?php echo gettext("Status of items on this page"); ?>"><img style="vertical-align:middle" src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_service_status.gif" border="0"></a> -<?php endif; ?> -<?php if(!empty($shortcut_section) && !empty($shortcuts[$shortcut_section]['log'])): ?> +echo get_shortcut_main_link($shortcut_section, true); +echo get_shortcut_status_link($shortcut_section, true); +echo get_shortcut_log_link($shortcut_section, true); -<a href="<?php echo $shortcuts[$shortcut_section]['log']; ?>" title="<?php echo gettext("Log entries for items on this page"); ?>"><img style="vertical-align:middle" src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_logs.gif" border="0"></a> -<?php endif; ?> +?> <?php if(! $g['disablehelpicon']): ?> <a href="<?php echo $helpurl; ?>" title="<?php echo gettext("Help for items on this page"); ?>"><img style="vertical-align:middle" src="/themes/<?php echo $g['theme']; ?>/images/icons/icon_help.gif" border="0"></a> |