1
<% /* Copyright 2009 Google Inc.
3
Licensed under the Apache License, Version 2.0 (the "License");
4
you may not use this file except in compliance with the License.
5
You may obtain a copy of the License at
7
http://www.apache.org/licenses/LICENSE-2.0
9
Unless required by applicable law or agreed to in writing, software
10
distributed under the License is distributed on an "AS-IS" BASIS,
11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
See the License for the specific language governing permissions and
13
limitations under the License. */ %><%
14
helpers.includeCss('store/ondemand-billing.css');
18
function displayInvoice(invoice) { %>
20
<td><%= formatDate(invoice.time) %></td>
21
<td><%= invoice.id %></td>
22
<td><%= invoice.status == 'paid' ? "Paid" : (invoice.status == 'pending' ? "<strong>Pending</strong>" : (invoice.status == 'refunded' ? "<em>Refunded</em>" : invoice.status)) %></td>
23
<td><%= invoice.users %></td>
24
<td>US $<%= dollars(centsToDollars(invoice.amt)) %></td>
25
<td><a href="<%= request.path %>?id=<%= invoice.id %>">View</a></td>
29
<h3 class="top">Past Invoices</h3>
31
<% if (invoices.length == 0) { %>
32
<p class="informational">No old invoices.</p>
34
<table class="invoicelist">
37
<th>Invoice Number</th>
39
<th>Number of users</th>
43
<% invoices.forEach(displayInvoice); %>
b'\\ No newline at end of file'