aboutsummaryrefslogtreecommitdiff
path: root/web/static
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-10-31 14:28:11 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-10-31 14:28:11 +0100
commit9d97d8f89bc570b1232c0dd8450f489b39023e18 (patch)
treec0113f6ded70a2d0cbe39caea65c614016d3b323 /web/static
parent803148d5a23afe207fb5de9ac73c986a324feb9c (diff)
downloaddiller-server-9d97d8f89bc570b1232c0dd8450f489b39023e18.tar.gz
diller-server-9d97d8f89bc570b1232c0dd8450f489b39023e18.tar.bz2
diller-server-9d97d8f89bc570b1232c0dd8450f489b39023e18.tar.xz
diller-server-9d97d8f89bc570b1232c0dd8450f489b39023e18.zip
core/web:
o Adding last_timestamp o Showing last_value and last_timestamp for each property.
Diffstat (limited to 'web/static')
-rw-r--r--web/static/app/templates/device.html14
1 files changed, 11 insertions, 3 deletions
diff --git a/web/static/app/templates/device.html b/web/static/app/templates/device.html
index 270c461..d1fb6f9 100644
--- a/web/static/app/templates/device.html
+++ b/web/static/app/templates/device.html
@@ -90,17 +90,25 @@
<table class="table" ng-if="ctrl.device.properties.length > 0">
<thead>
<tr>
- <td>Registered</td>
<td>Key</td>
+ <td>Last value</td>
+ <td>Last timestamp</td>
+ <td>Registered</td>
</tr>
</thead>
<tbody>
<tr ng-repeat="p in ctrl.device.properties | orderBy:'key'">
<td>
- {{p.created_timestamp | date:'medium'}}
+ <a href="#/device/{{ctrl.device.id}}/property/{{p.id}}">{{p.key}}</a>
</td>
<td>
- <a href="#/device/{{ctrl.device.id}}/property/{{p.id}}">{{p.key}}</a>
+ {{p.last_value}}
+ </td>
+ <td>
+ {{p.last_timestamp | date:'medium'}}
+ </td>
+ <td>
+ {{p.created_timestamp | date:'medium'}}
</td>
</tr>
</tbody>