diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/static/app/templates/front-page.html | 8 |
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> |