Commit 1ad761c2 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Mark underused reservations in red.

parent f5fa94f1
...@@ -105,8 +105,12 @@ ...@@ -105,8 +105,12 @@
<% } %> <% } %>
<td><%- value.type %></td> <td><%- value.type %></td>
<td><%- value.count %></td> <td><%- value.count %></td>
<% if (showusing) { %> <% if (showusing) { %>
<td><%- value.using %></td> <% if (new Date().getTime() > new Date(value.start).getTime() && value.using < value.count) { %>
<td><span class="text-danger"><%- value.using %></span></td>
<% } else { %>
<td><%- value.using %></td>
<% } %>
<% } %> <% } %>
<td class="format-date"><%- value.created %></td> <td class="format-date"><%- value.created %></td>
<td class="format-date"><%- value.start %></td> <td class="format-date"><%- value.start %></td>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment