hal/web-resource/event_detail.tmpl
Ziver Koc ff9709b6d2 Small changes to detail pages and change tellstick plugin to write in UTF-8
Former-commit-id: 90320b2bd13c134c0e3ec447759443af3303de42
2016-01-25 16:20:16 +01:00

52 lines
1.8 KiB
Cheetah
Executable file

<h1 class="page-header">Details for <a href="#">{{event.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>
<th>{{event.getName()}}</th>
</tr>
</thead>
<tr>
<th class="text-right">Type:</th>
<td>{{event.getDeviceData().getClass().getSimpleName()}}</td>
</tr>
<tr>
<th class="text-right">Owner:</th>
<td>{{event.getUser().getUsername()}} <p></td>
</tr>
{{#event.getDeviceConfig().getConfiguration()}}
<tr>
<th class="text-right">{{.getNiceName()}}:</th>
<td>{{.getString()}}</td>
</tr>
{{/event.getDeviceConfig().getConfiguration()}}
</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><span class="timestamp">{{.timestamp}}</span></td>
<td>{{.data}}</td>
</tr>
{{/history}}
</table>
</div>
</div>
</div>