mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
Merge pull request #545 from mchasteen/issue-544
Fixed some formatting for generic sensors.
This commit is contained in:
@@ -4,11 +4,12 @@ $sensors = dbFetchRows("SELECT * FROM `sensors` WHERE `sensor_class` = ? AND dev
|
|||||||
|
|
||||||
if (count($sensors))
|
if (count($sensors))
|
||||||
{
|
{
|
||||||
echo('<div class="row">
|
echo('<div class="container-fluid ">
|
||||||
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="panel panel-default panel-condensed">
|
<div class="panel panel-default panel-condensed">
|
||||||
<div class="panel-heading">');
|
<div class="panel-heading">');
|
||||||
echo('<a class="sectionhead" href="device/device='.$device['device_id'].'/tab=health/metric=' . strtolower($sensor_type) . '/"><img src="images/icons/' . strtolower($sensor_type) . '.png"> ' . $sensor_type . '</a><');
|
echo('<a href="device/device='.$device['device_id'].'/tab=health/metric=' . strtolower($sensor_type) . '/"><img src="images/icons/' . strtolower($sensor_type) . '.png"><strong> ' . $sensor_type . '</strong></a>');
|
||||||
echo(' </div>
|
echo(' </div>
|
||||||
<table class="table table-hover table-condensed table-striped">');
|
<table class="table table-hover table-condensed table-striped">');
|
||||||
foreach ($sensors as $sensor)
|
foreach ($sensors as $sensor)
|
||||||
|
|||||||
Reference in New Issue
Block a user