Skip to content

Commit

Permalink
changed status row erb template
Browse files Browse the repository at this point in the history
  • Loading branch information
sarco3t committed Dec 11, 2018
1 parent cd97fb2 commit e383102
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/views/status/index.html.erb
Expand Up @@ -17,10 +17,8 @@
<% end %>
<td class="location-cell">
<%= link_to smoke_detector_statistics_path(sd.id) do %>
<span class="location"><%= sd.location %></span>
<% if sd.is_standby %>
<span class="label label-<%= sd.last_ping > 3.minutes.ago ? "primary" : "default" %> ">Standby</span>
<% end %>
<span class="location"><%= sd.location %></span>
<span class="label label-<%= sd.last_ping > 3.minutes.ago ? "primary" : "default" %> " style="display: <%= sd.is_standby ? 'inline' : 'none'%>">Standby</span>
<% end %>
</td>
<td class="status-<%= sd.status_color %> ping-cell" data-livestamp="<%= sd.last_ping.to_i %>" title="<%= sd.last_ping.to_s %>">
Expand Down

0 comments on commit e383102

Please sign in to comment.