diff --git a/app/views/beacons/_summary.html.erb b/app/views/beacons/_summary.html.erb new file mode 100644 index 00000000..f48634e3 --- /dev/null +++ b/app/views/beacons/_summary.html.erb @@ -0,0 +1,43 @@ +
Total Beacons
+<%= @beacons.count %>
+Online Now
+<%= @beacons.count { |b| b[:online] } %>
+Offline
+<%= @beacons.count { |b| !b[:online] } %>
+| Status | +Beacon Name | +Current Manifest Version | +Latest Manifest Version | +Up to Date? | +Last Seen at | +Last Sync at | +
|---|---|---|---|---|---|---|
|
+
+
+
+ <%= beacon.revoked? ? 'Revoked' : 'Active' %>
+
+
+ |
+
+ <%= link_to beacon_path(beacon), class: "no-underline" do %>
+
+
+ <% end %>
+
+
+
+
+
+ <%= beacon.name %>
+ <%= beacon.api_key_prefix %>***
+ |
+ + + current manifest + + | ++ + latest manifest + + | ++ + is up to date? + + | ++ + last seen at + + | ++ + last sync at + + | +
|
+
+
+
+ No beacons provisioned yet +Get started by provisioning your first beacon. + |
+ ||||||
| Status | -Beacon Name | -Current Manifest Version | -Latest Manifest Version | -Up to Date? | -Last Seen at | -Last Sync at | -
|---|---|---|---|---|---|---|
|
-
-
-
- <%= beacon.revoked? ? 'Revoked' : 'Active' %>
-
-
- |
-
- <%= link_to beacon_path(beacon), class: "no-underline" do %>
-
-
- <% end %>
-
-
-
-
-
- <%= beacon.name %>
- <%= beacon.api_key_prefix %>***
- |
- - - current manifest - - | -- - latest manifest - - | -- - is up to date? - - | -- - last seen at - - | -- - last sync at - - | -
|
-
-
-
- No beacons provisioned yet -Get started by provisioning your first beacon. - |
- ||||||
Total Beacons
-<%= @beacons.count %>
-Online Now
-<%= @beacons.count { |b| b[:online] } %>
-Offline
-<%= @beacons.count { |b| !b[:online] } %>
-