diff options
author | jim-p <jimp@pfsense.org> | 2012-08-11 20:20:57 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-08-11 20:20:57 -0400 |
commit | 226c43a5264df679f4035afe1ef5f90a3fb722a7 (patch) | |
tree | de16c24350027a8663b3f08b29d35cc2aa2ad35d /usr/local/www/fbegin.inc | |
parent | d5bd9ee704490f5eaa6aafe7ff29cb03c1a7b2c7 (diff) | |
download | pfsense-226c43a5264df679f4035afe1ef5f90a3fb722a7.zip pfsense-226c43a5264df679f4035afe1ef5f90a3fb722a7.tar.gz |
Where possible, link back to the main page of a section too.
Diffstat (limited to 'usr/local/www/fbegin.inc')
-rwxr-xr-x | usr/local/www/fbegin.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index f5ba888..4371e9a 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -406,17 +406,21 @@ if (!$hide_service_status && !empty($shortcuts[$shortcut_section]['service'])) { 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> +<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'])): ?> -<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> +<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> +<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> <?php endif; ?> </span> </div> |