Commit 6710624c authored by Leigh B Stoller's avatar Leigh B Stoller

Mark reservations that are started more clearly.

parent 5b5e5c2a
......@@ -152,14 +152,21 @@
<td><%- value.type %></td>
<td><%- value.count %></td>
<% if (showusing) { %>
<% if (value.approved && new Date().getTime() > new Date(value.start).getTime() && value.using < value.count) { %>
<% 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.start %></td>
<td>
<% if (new Date().getTime() > new Date(value.start).getTime()) { %>
<span class="format-date"
style="color: green;"><%- value.start %></span>
<% } else { %>
<span class="format-date"><%- value.start %></span>
<% } %>
</td>
<td class="format-date"><%- value.end %></td>
<% if (value.approved) { %>
<td>Approved</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