From 0c2c59a2a8ec1e2f3848e272a8201f57cb7aed12 Mon Sep 17 00:00:00 2001
From: jkaplon <jody@kaplon.us>
Date: Wed, 8 Jul 2015 17:31:24 -0400
Subject: [PATCH] Add fancy bootstrap table to core.hbs

---
 views/core.hbs    | 27 +++++++++++++++++++--------
 views/default.hbs |  2 +-
 2 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/views/core.hbs b/views/core.hbs
index 1c52a42..d8afb01 100644
--- a/views/core.hbs
+++ b/views/core.hbs
@@ -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(
diff --git a/views/default.hbs b/views/default.hbs
index 3b0b564..bc1c0be 100644
--- a/views/default.hbs
+++ b/views/default.hbs
@@ -17,7 +17,7 @@
 
 
 </head>
-<body>
+<body class="container-fluid">
 
     {{! Everything else gets inserted here }}
     {{{body}}}