summaryrefslogtreecommitdiffstats
path: root/usr/local/www/fbegin.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-06-01 15:24:27 -0400
committerjim-p <jimp@pfsense.org>2010-06-01 15:24:27 -0400
commitc2e23f7b4b36bde9965d209f5cd5fd8b80bb03ce (patch)
tree62858e3f66755d1decf48aec4a96697cd2ba9903 /usr/local/www/fbegin.inc
parent67252466b83d24e512c3abeb7cc7c266dd2619f0 (diff)
downloadpfsense-c2e23f7b4b36bde9965d209f5cd5fd8b80bb03ce.zip
pfsense-c2e23f7b4b36bde9965d209f5cd5fd8b80bb03ce.tar.gz
Add a way to show status/log icons by the help icon. Define $statusurl and/or $logurl in the same manner as $pgtitle and if the variables are defined and not empty, the shortcut icons will appear. Ticket #623.
Diffstat (limited to 'usr/local/www/fbegin.inc')
-rwxr-xr-xusr/local/www/fbegin.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc
index 5f02b69..acdd9b8 100755
--- a/usr/local/www/fbegin.inc
+++ b/usr/local/www/fbegin.inc
@@ -408,9 +408,17 @@ function add_to_menu($url, $name) {
<div>
<span class="pgtitle"><?=genhtmltitle($pgtitle);?></font></span>
+<span style="float:right; margin: 0 0 20px 20px;">
+<?php if(! empty($statusurl)): ?>
+<a href="<?php echo $statusurl; ?>" target="_new" title="Status of items on this page."><img src="/themes/<?php echo $g['theme']; ?>/images/status.png" border="0"></a>
+<?php endif; ?>
+<?php if(! empty($logurl)): ?>
+<a href="<?php echo $logurl; ?>" target="_new" title="Log entries for items on this page."><img src="/themes/<?php echo $g['theme']; ?>/images/log.png" border="0"></a>
+<?php endif; ?>
<?php if(! $g['disablehelpicon']): ?>
-<span style="float:right; margin: 0 0 20px 20px;"><a href="<?php echo $helpurl; ?>" target="_new" title="Help for items on this page."><img src="/themes/<?php echo $g['theme']; ?>/images/help.png" border="0"></a></span>
+<a href="<?php echo $helpurl; ?>" target="_new" title="Help for items on this page."><img src="/themes/<?php echo $g['theme']; ?>/images/help.png" border="0"></a>
<?php endif; ?>
+</span>
</div>
<br />
OpenPOWER on IntegriCloud