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">
<thead>
<tr>
<th>Device Name</th>
<th>Location</th>
<th>Last Update</th>
<th></th>
</tr>
</thead>
<tbody>
{{#each cores}} {{#each cores}}
<li> <tr>
<td>
<a href="https://particle.kaplon.us/core/{{this.coreId}}"> <a href="https://particle.kaplon.us/core/{{this.coreId}}">
{{#if this.coreName}} {{#if this.coreName}}
{{this.coreName}}, {{this.locationDesc}}, {{this.MaxPub}}, {{this.MaxStatus}} {{this.coreName}}
{{else}} {{else}}
{{this.coreId}}, {{this.locationDesc}}, {{this.MaxPub}}, {{this.MaxStatus}} {{this.coreId}}
{{/if}} {{/if}}
</a> </a>
</li> </td>
<td>{{this.locationDesc}}</td>
<td>{{this.MaxPub}}</td>
<td>{{this.MaxStatus}}</td>
</tr>
{{/each}} {{/each}}
</ul> </tbody>
</table>