hal/web-resource/sensor_detail.tmpl
Ziver Koc 113bbdbfb8 Added Sensor overview page. issue 7
Former-commit-id: 60dec1d1a95f568404371ecd3c2cc38bc8a4a355
2016-01-22 17:54:18 +01:00

50 lines
1.6 KiB
Cheetah
Executable file

<h1 class="page-header">Details for <a href="#">{{sensor.getName()}}</a></h1>
<div class="col-md-5">
<div class="panel panel-default drop-shadow">
<div class="panel-heading">Configuration</div>
<div class="panel-body">
<table class="table table-hover table-condensed">
<thead>
<tr>
<th class="text-right">Name:</th>
<td>{{sensor.getName()}}</td>
</tr>
</thead>
<tr>
<th class="text-right">Type:</th>
<td>{{sensor.getDeviceData().getClass().getSimpleName()}}</td>
</tr>
<tr>
<th class="text-right">Public:</th>
<td>{{sensor.isSynced()}}</td>
</tr>
<tr>
<th class="text-right">Owner:</th>
<td>{{sensor.getUser().getUsername()}}</td>
</tr>
</table>
</div>
</div>
</div>
<div class="col-md-7">
<div class="panel panel-default drop-shadow">
<div class="panel-heading">History data</div>
<div class="panel-body">
<table class="table table-hover table-condensed">
<thead>
<th class="col-md-6">Timestamp</th>
<th class="col-md-2">Data</th>
</thead>
{{#history}}
<tr>
<td>{{.timestamp}}</a></td>
<td>{{.data}}</td>
</tr>
{{/history}}
</table>
</div>
</div>
</div>