summaryrefslogtreecommitdiffstats
path: root/glances/outputs/static/html/plugins/sensors.html
diff options
context:
space:
mode:
Diffstat (limited to 'glances/outputs/static/html/plugins/sensors.html')
-rw-r--r--glances/outputs/static/html/plugins/sensors.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/glances/outputs/static/html/plugins/sensors.html b/glances/outputs/static/html/plugins/sensors.html
new file mode 100644
index 00000000..0ee09581
--- /dev/null
+++ b/glances/outputs/static/html/plugins/sensors.html
@@ -0,0 +1,13 @@
+<div class="table-row">
+ <div class="table-cell text-left title">SENSORS</div>
+</div>
+<div class="table-row" ng-repeat="sensor in result['sensors']">
+ <div class="table-cell text-left">{{ sensor.label }}</div>
+ <div class="table-cell">{{ sensor.unit }}</div>
+ <div class="table-cell" ng-if="sensor.type != 'battery'" ng-class="getAlert('sensors', 'sensors_' + sensor.type + '_', sensor.value)">
+ {{ sensor.value }}
+ </div>
+ <div class="table-cell" ng-if="sensor.type == 'battery'" ng-class="getAlert('sensors', 'sensors_' + sensor.type + '_', 100 - sensor.value)">
+ {{ sensor.value }}
+ </div>
+</div>