Add fancy bootstrap table to core.hbs
This commit is contained in:
parent
7658ca5e42
commit
0c2c59a2a8
@ -1,13 +1,24 @@
|
||||
{{!< default}}
|
||||
|
||||
<h1>Alerts from a single Particle Core:</h1>
|
||||
<ul>
|
||||
{{! try to add header to list pretty core name and locale text (not sure how to pass this from node}}
|
||||
{{alerts.0.coreName}}
|
||||
{{#each alerts}}
|
||||
<li>{{this.published_at}}: {{this.status}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{! Grab 1st coreName value (it will be same value for entire set).}}
|
||||
<h1>Alerts from Particle Core: {{alerts.0.coreName}} </h1>
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Timestamp</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each alerts}}
|
||||
<tr>
|
||||
<td>{{this.published_at}}</td>
|
||||
<td>{{this.status}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
setTimeout(
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<body class="container-fluid">
|
||||
|
||||
{{! Everything else gets inserted here }}
|
||||
{{{body}}}
|
||||
|
Loading…
Reference in New Issue
Block a user