Improved data column title
This commit is contained in:
parent
8a5267b0f8
commit
c818d5bcc7
3 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@
|
||||||
<table class="table table-hover table-condensed">
|
<table class="table table-hover table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<th class="col-md-6">Timestamp</th>
|
<th class="col-md-6">Timestamp</th>
|
||||||
<th class="col-md-2">Data</th>
|
<th class="col-md-2">Raw Data</th>
|
||||||
</thead>
|
</thead>
|
||||||
{{#history}}
|
{{#history}}
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
if (row.dataset.deviceId != deviceData.id || row.dataset.timestamp != deviceData.data?.timestamp) {
|
if (row.dataset.deviceId != deviceData.id || row.dataset.timestamp != deviceData.data?.timestamp) {
|
||||||
// Only update if data has changed
|
// Only update if data has changed
|
||||||
row.dataset.deviceId = deviceData.id;
|
row.dataset.deviceId = deviceData.id;
|
||||||
row.cells[0].innerHTML = deviceData.name;
|
row.cells[0].innerHTML = "<a href='?id=" + deviceData.id + "'>" + deviceData.name + "</a>";
|
||||||
row.cells[1].innerHTML = deviceData.config?.typeConfig;
|
row.cells[1].innerHTML = deviceData.config?.typeConfig;
|
||||||
row.cells[2].innerHTML = deviceData.data?.valueStr;
|
row.cells[2].innerHTML = deviceData.data?.valueStr;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
<table class="table table-hover table-condensed">
|
<table class="table table-hover table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<th class="col-md-6">Timestamp</th>
|
<th class="col-md-6">Timestamp</th>
|
||||||
<th class="col-md-2">Data</th>
|
<th class="col-md-2">Raw Data</th>
|
||||||
</thead>
|
</thead>
|
||||||
{{#history}}
|
{{#history}}
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue