Change jumbotron text; use html table on device listing template, closes issue #19

This commit is contained in:
jkaplon 2015-07-17 13:02:31 -04:00
parent ac76f02337
commit 9915256f77
2 changed files with 29 additions and 14 deletions

View File

@ -17,7 +17,7 @@
<body class="container-fluid"> <body class="container-fluid">
<div style="background:#D1E0E0" class="jumbotron"> <div style="background:#D1E0E0" class="jumbotron">
<h1 class="text-center">Device Dashboard</h1> <h1 class="text-center">Alert Monitor Dashboard</h1>
</div> </div>
{{! Everything else gets inserted here }} {{! Everything else gets inserted here }}

View File

@ -1,16 +1,31 @@
{{!< default}} {{!< default}}
<h1>Select a monitor device:</h1> <h1>Select a monitor device:</h1>
<ul> <table class="table table-striped">
{{#each cores}} <thead>
<li> <tr>
<a href="https://particle.kaplon.us/core/{{this.coreId}}"> <th>Device Name</th>
{{#if this.coreName}} <th>Location</th>
{{this.coreName}}, {{this.locationDesc}}, {{this.MaxPub}}, {{this.MaxStatus}} <th>Last Update</th>
{{else}} <th></th>
{{this.coreId}}, {{this.locationDesc}}, {{this.MaxPub}}, {{this.MaxStatus}} </tr>
{{/if}} </thead>
</a> <tbody>
</li> {{#each cores}}
{{/each}} <tr>
</ul> <td>
<a href="https://particle.kaplon.us/core/{{this.coreId}}">
{{#if this.coreName}}
{{this.coreName}}
{{else}}
{{this.coreId}}
{{/if}}
</a>
</td>
<td>{{this.locationDesc}}</td>
<td>{{this.MaxPub}}</td>
<td>{{this.MaxStatus}}</td>
</tr>
{{/each}}
</tbody>
</table>