diff --git a/docroot/table/config.js b/docroot/table/config.js
index 982a129..de34ce9 100644
--- a/docroot/table/config.js
+++ b/docroot/table/config.js
@@ -7,6 +7,7 @@ config = {
fulldate: "Date/Time",
name: "Name",
user: "User",
+ batt: "Battery",
tid: "TID",
cc: "CC",
addr: "Address"
diff --git a/docroot/table/index.html b/docroot/table/index.html
index 1190ec5..8784c97 100644
--- a/docroot/table/index.html
+++ b/docroot/table/index.html
@@ -183,6 +183,25 @@
render: 'tid',
"targets" : [5],
},
+ {
+ className: 'batt',
+ name: 'batt',
+ title: config.column_titles.batt,
+ visible: true,
+ data: null,
+ render: function(data, type, row) {
+ if (typeof data.batt === 'undefined' || data.batt === null) {
+ return '-';
+ }
+
+ var t = "{{batt}}%";
+ if (data.batt < 25) {
+ t = '' + t + '';
+ }
+ return Mustache.render(t, data);
+ },
+ "targets" : [6],
+ },
{
className: 'cc',
name: 'cc',
@@ -193,7 +212,7 @@
var t = "
";
return Mustache.render(t, data);
},
- "targets" : [6],
+ "targets" : [7],
},
{
className: 'addr',
@@ -205,7 +224,7 @@
var t = "{{addr}}";
return Mustache.render(t, data);
},
- "targets" : [7],
+ "targets" : [8],
},
],
@@ -262,6 +281,7 @@