~davewalker/etherpad/ubuntu-unlimited-max-users-and-revisions

« back to all changes in this revision

Viewing changes to etherpad/src/themes/default/templates/pro/admin/billing-invoices.ejs

  • Committer: James Page
  • Date: 2011-04-13 08:00:43 UTC
  • Revision ID: james.page@canonical.com-20110413080043-eee2nq7y1v7cv2mp
* Refactoring to use native Ubuntu Java libraries. 
* debian/control:
  - use openjdk instead of sun's java
  - update maintainer
* debian/etherpad.init.orig, debian/etherpad.upstart:
  - move the init script out of the way
  - create a basic upstart script
  - note that the open office document conversion daemon was dropped
    from the upstart configuration; if this behavior is desired, please
    create a separate upstart job for it
* debian/rules:
  - just use basic dh_installinit, as it will pick up the new upstart job
* New release
* Changed maintainer to Packaging
* Fixed installation scripts
* Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<% /* Copyright 2009 Google Inc.
 
2
 
 
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
 
6
 
 
7
     http://www.apache.org/licenses/LICENSE-2.0
 
8
 
 
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');
 
15
%>
 
16
 
 
17
<% 
 
18
function displayInvoice(invoice) { %> 
 
19
  <tr>
 
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>
 
26
  </tr>
 
27
<% } %>
 
28
 
 
29
<h3 class="top">Past Invoices</h3>
 
30
 
 
31
<% if (invoices.length == 0) { %>
 
32
  <p class="informational">No old invoices.</p>
 
33
<% } else { %> 
 
34
  <table class="invoicelist">
 
35
    <tr>
 
36
      <th>Date</th>
 
37
      <th>Invoice Number</th>
 
38
      <th>Status</th>
 
39
      <th>Number of users</th>
 
40
      <th>Cost</th>
 
41
      <th>&nbsp;</th>
 
42
    </tr>
 
43
    <% invoices.forEach(displayInvoice); %>
 
44
  </table>
 
45
<% } %>
 
 
b'\\ No newline at end of file'