aboutsummaryrefslogtreecommitdiff
path: root/web/static/app/templates
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-10-30 20:28:41 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-10-30 20:28:41 +0100
commita949af38a33cd08577ab91d6c5eb418520daefc8 (patch)
tree8251a36420396e2b26559c19d65da785f5e5b39b /web/static/app/templates
parentecb664a8550ee787a593db6cf45907100a875a54 (diff)
downloaddiller-server-a949af38a33cd08577ab91d6c5eb418520daefc8.tar.gz
diller-server-a949af38a33cd08577ab91d6c5eb418520daefc8.tar.bz2
diller-server-a949af38a33cd08577ab91d6c5eb418520daefc8.tar.xz
diller-server-a949af38a33cd08577ab91d6c5eb418520daefc8.zip
web:
o Adding 'time ago' for each value. o Adding 'reload' button for a property.
Diffstat (limited to 'web/static/app/templates')
-rw-r--r--web/static/app/templates/property.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/web/static/app/templates/property.html b/web/static/app/templates/property.html
index 65a66e8..cd003ca 100644
--- a/web/static/app/templates/property.html
+++ b/web/static/app/templates/property.html
@@ -16,7 +16,15 @@
<li>Description: {{ctrl.property.description}}</li>
</ul>
- <h3>Latest Values</h3>
+ <h3>
+ Latest Values
+ <small ng-hide="ctrl.loading">
+ <a href ng-click="ctrl.refresh()">refresh</a>
+ </small>
+ <small ng-show="ctrl.loading">
+ Loading <dl-dots></dl-dots>
+ </small>
+ </h3>
<table class="table">
<thead>
@@ -27,7 +35,7 @@
</thead>
<tbody>
<tr ng-repeat="v in ctrl.values">
- <td>{{v.timestamp | date:'medium'}}</td>
+ <td><dl-timestamp value="v.timestamp"></dl-timestamp></td>
<td>{{v.value}}</td>
</tr>
</tbody>