<h3>Status</h3>

<br />

<table class='table'>
  <tr>
    <th>Name</th>
    <th>Last Ping</th>
  </tr>

  <% SmokeDetector.order("last_ping DESC").each do |sd| %>
    <tr>
      <td><%= sd.location %></td>
      <td class="status-<%= sd.status_color %>"><%= sd.last_ping %> (<%= time_ago_in_words(sd.last_ping)%> ago)</td>
    </tr>
  <% end %>
</table>

<h3>Status</h3>

<br />

<table class='table'>
  <tr>
    <th>Name</th>
    <th>Last Ping</th>
  </tr>

  <% SmokeDetector.order("last_ping DESC").each do |sd| %>
    <tr>
      <td><%= sd.location %></td>
      <td class="status-<%= sd.status_color %>"><%= sd.last_ping %> (<%= time_ago_in_words(sd.last_ping, include_seconds: true)%> ago)</td>
    </tr>
  <% end %>
</table>

Include seconds in last ping time-ago
Include seconds in last ping time-ago
