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