1 <% val you = Init.getUser();
2 val bal = Balance.lookupBalance (#bal you);
3 val deposit = Balance.depositAmount (#id bal);
4 val showBal = Util.sub (#amount bal, deposit);
7 <div style="border: 1px solid goldenrod; background-color: palegoldenrod;">
9 <h3>Notice: Google Checkout Is Gone</h3>
11 <p>Google Checkout shut down in November 2013 so we only have Paypal
12 available for processing payments currently. We are in the process of
13 selecting a second (and possibly third) payment processor; you can
14 contribute to the discussion by <a
15 href="http://wiki.hcoop.net/PaymentProcessor2014">visiting the wiki
22 <h3><a href="money">Your recent account activity</a></h3>
24 <% ref running = showBal %>
26 <tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> <td><b>Balance</b></td></tr>
27 <% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %>
28 <tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td style="text-align: right"><% amount %>/<% #amount trn %></td>
29 <td style="text-align: right"><% running %></td></tr>
30 <% running := Util.sub (running, amount)
33 <a href="money?lookback=inf">Show all transactions</a><br>
34 <b>Balance: $<% showBal %></b><br>
35 <b>Deposit: $<% deposit %></b> (3 months of dues at the minimal <a href="pledge">pledge level</a>)
37 <h3>Pending Stripe Payments</h3>
40 <tr><td><strong>Date</strong></td><td><strong>Net Amount</strong> (After Fees)</td></tr>
41 <% foreach stripePmt in Money.listUserPendingStripePayments
42 (Init.getUserId () ) do %>
44 <td><% #paid_on stripePmt %></td>
45 <td style="text-align: right">$<% #net stripePmt %></td>
51 <!--b>Balance: $<% #amount bal %></b-->
53 <% val polls = Poll.listCurrentPolls ();
56 <h3><a href="poll">Current polls</a></h3>
58 <% foreach pol in polls do %>
59 <li> <a href="poll?id=<% #id pol %>"><% Web.html (#title pol) %></a>
60 <% if Poll.takingVotes pol then %><a href="poll?vote=<% #id pol %>">[VOTE]</a><% end %>
61 (<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)</li>
65 <% val issues = Support.listOpenIssues (#id you);
68 <h3><a href="support">Open support issues</a></h3>
70 <% foreach (name, issue) in issues do %>
71 <a href="user?id=<% #usr issue %>"><% name %></a>: <a href="issue?cat=<% #cat issue %>&id=<% #id issue %>"><% Web.html (#title issue) %></a>
72 <% switch #status issue of
73 Support.NEW => %>(New)<%
74 | Support.PENDING => %>(Pending)<%
75 | Support.CLOSED => %>(Closed)<%
81 val {total, vhosts} = Stats.getWebbwUser {user = Init.getUserName (), last = 0};
84 %><h3>Your web traffic this month</h3>
85 <table class="data"><tr><th>Site</th> <th>Data transferred (kB)</th></tr><%
86 foreach e in vhosts do %>
87 <tr><td style="text-align: right"><a href="<% if #ssl (#host e) then %>https<% else %>http<% end %>://<% #hostname (#host e) %>/"><% #hostname (#host e) %><% if #ssl (#host e) then %> (SSL)<% end %></a> <a href="/webalizer/<% #id (#host e) %>/">[detail]</a></td><td style="text-align: right"><% #size e %></td></tr>