diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-08 12:05:27 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-08 12:05:48 -0500 |
commit | a54d69c82588cc41502ebf172e68625ca92720c1 (patch) | |
tree | 8f27d214235105cac0410deb76f7d55845f65abe /src | |
parent | 2512e643d9122368cda88f50c12479f689aca728 (diff) | |
download | pfsense-a54d69c82588cc41502ebf172e68625ca92720c1.zip pfsense-a54d69c82588cc41502ebf172e68625ca92720c1.tar.gz |
Added status page links to widget titles
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/bootstrap/css/pfSense.css | 5 | ||||
-rw-r--r-- | src/usr/local/www/index.php | 17 |
2 files changed, 19 insertions, 3 deletions
diff --git a/src/usr/local/www/bootstrap/css/pfSense.css b/src/usr/local/www/bootstrap/css/pfSense.css index 7d4a551..62218d5 100644 --- a/src/usr/local/www/bootstrap/css/pfSense.css +++ b/src/usr/local/www/bootstrap/css/pfSense.css @@ -618,3 +618,8 @@ textarea max-height: none !important; } } + +.panel-heading a:link, .panel-heading a:visited { + color: white; + text-decoration: underline; +} diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index 52b0a2f..7c943ff 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -376,10 +376,21 @@ foreach ($widgets as $widgetname => $widgetconfig) ?> <?php foreach ($widgetColumns as $column => $columnWidgets):?> <div class="col-md-<?=$columnWidth?>" id="widgets-<?=$column?>"> -<?php foreach ($columnWidgets as $widgetname => $widgetconfig):?> +<?php foreach ($columnWidgets as $widgetname => $widgetconfig): + + // Compose the widget title and include the title link if available + $widgetlink = ${str_replace(' ', '_', strtolower($widgetconfig['name'])) . '_title_link'}; + + if ((strlen($widgetlink) > 0)) { + $wtitle = '<a href="' . $widgetlink . '"> ' . $widgetconfig['name'] . '</a>'; + } else { + $wtitle = $widgetconfig['name']; + } + +?> <div class="panel panel-default" id="widget-<?=$widgetname?>"> <div class="panel-heading"> - <?=$widgetconfig['name']?> + <?=$wtitle?> <span class="widget-heading-icon"> <a data-toggle="collapse" href="#widget-<?=$widgetname?> .panel-footer" class="config hidden"> <i class="fa fa-wrench"></i> @@ -397,7 +408,7 @@ foreach ($widgets as $widgetname => $widgetconfig) <?php include('/usr/local/www/widgets/widgets/'. $widgetname.'.widget.php'); ?> </div> </div> -<?php endforeach; +<?php endforeach; $columnCounter++; ?> </div> |