30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
<% if (typeof accessCode !== "undefined" && accessCode && accessCode.code) { %>
|
|
<div class="windows-overlay">
|
|
<div class="section">
|
|
<strong>Access Code Active:</strong> <%= accessCode.code %>
|
|
</div>
|
|
|
|
<% if (accessCode.data) { %>
|
|
<% if (accessCode.data.type === "quota" || accessCode.data.type === "both") { %>
|
|
<div class="section">
|
|
<strong>Requests Left:</strong> <%= accessCode.data.quota %>
|
|
</div>
|
|
<% } %>
|
|
<% if (accessCode.data.type === "time" || accessCode.data.type === "both") { %>
|
|
<div class="section">
|
|
<strong>Expires:</strong> <%= timeToPass(accessCode.data.expires) %>
|
|
</div>
|
|
<% } %>
|
|
<div class="section">
|
|
<strong>Unlocks:</strong> <%= accessCode.data.data %>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% if (accessCode.error) { %>
|
|
<div class="section danger">
|
|
<%= accessCode.error %>
|
|
</div>
|
|
<% } %>
|
|
</div>
|
|
<% } %>
|