aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-11-16 18:46:56 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-11-16 18:46:56 +0100
commitdda9ef2ae7971bceaa792e328c8489cb0695b77e (patch)
treef4ce29c170dbd4af136418949a857eb9e89154ca /web
parentf17922bcafe1f2f369c9be0f236570771c8ab214 (diff)
downloaddiller-server-dda9ef2ae7971bceaa792e328c8489cb0695b77e.tar.gz
diller-server-dda9ef2ae7971bceaa792e328c8489cb0695b77e.tar.bz2
diller-server-dda9ef2ae7971bceaa792e328c8489cb0695b77e.tar.xz
diller-server-dda9ef2ae7971bceaa792e328c8489cb0695b77e.zip
core:
o Adding device_status table containing the latest device status. mqtt: o Listening on $SYS/broker/log, parse out messages about clients connecting and disconnecting and store in database.
Diffstat (limited to 'web')
-rw-r--r--web/static/app/templates/front-page.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/static/app/templates/front-page.html b/web/static/app/templates/front-page.html
index e2ee38b..a49bc61 100644
--- a/web/static/app/templates/front-page.html
+++ b/web/static/app/templates/front-page.html
@@ -5,6 +5,7 @@
<table class="table">
<thead>
<tr>
+ <th>Status</th>
<th>Name</th>
<th>Registered</th>
</tr>
@@ -12,6 +13,13 @@
<tbody>
<tr ng-repeat="d in ctrl.devices | orderBy:['name', 'key']">
<td>
+ <span ng-if="d.status.online" class="label label-success">ONLINE</span>
+ <span ng-if="!d.status.online" class="label label-danger">OFFLINE</span>
+ <small class="text-muted">
+ since {{d.status.timestamp | date:'medium'}}
+ </small>
+ </td>
+ <td>
<a href="#/device/{{d.id}}">
{{(d.name || d.key)}}
</a>