diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-10-31 21:26:13 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-10-31 21:26:13 +0100 |
commit | 13ebc9d3f82f686ca2bc8388095feeb9067e2e40 (patch) | |
tree | 4d90d3178c9fa8d326b7d429ef983ca562846d9d /web/static/app/templates/property.html | |
parent | 141cb7cba5c36a9c5415772e2de9823f927d7abb (diff) | |
download | diller-server-13ebc9d3f82f686ca2bc8388095feeb9067e2e40.tar.gz diller-server-13ebc9d3f82f686ca2bc8388095feeb9067e2e40.tar.bz2 diller-server-13ebc9d3f82f686ca2bc8388095feeb9067e2e40.tar.xz diller-server-13ebc9d3f82f686ca2bc8388095feeb9067e2e40.zip |
web:
o Showning device name and description.
o Trying out cards for the property list.
Diffstat (limited to 'web/static/app/templates/property.html')
-rw-r--r-- | web/static/app/templates/property.html | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/web/static/app/templates/property.html b/web/static/app/templates/property.html index 5e8199d..8cff1f0 100644 --- a/web/static/app/templates/property.html +++ b/web/static/app/templates/property.html @@ -1,15 +1,19 @@ <div class="container"> <h1> - <a href="#/device/{{ctrl.device.id}}">{{ctrl.device.key}}</a> - <small class="muted">device</small> + <a href="#/device/{{ctrl.device.id}}"> + {{(ctrl.device.name || ctrl.device.key)}} + </a> </h1> <h2> - {{ctrl.property.key}} - <small class="muted">property</small> + {{(ctrl.property.name || ctrl.property.key)}} </h2> + <p ng-show="ctrl.property.description"> + {{ctrl.property.description}} + </p> + <ul> <li>Created: {{ctrl.property.created_timestamp | date}}</li> <li>Name: {{ctrl.property.name}}</li> @@ -42,7 +46,10 @@ </tbody> <tbody ng-if="ctrl.values.length > 0"> <tr ng-repeat="v in ctrl.values"> - <td><dl-timestamp value="v.timestamp"></dl-timestamp></td> + <td> + {{v.timestamp | date:'medium'}}, + <dl-timestamp value="v.timestamp"></dl-timestamp> + </td> <td>{{v.value}}</td> </tr> </tbody> |