Minor html fixes
[hcoop/portal.git] / portal.mlt
index 7fb59ee..cdba951 100644 (file)
@@ -1,21 +1,53 @@
 <% val you = Init.getUser();
 val bal = Balance.lookupBalance (#bal you);
 val deposit = Balance.depositAmount (#id bal);
+val showBal = Util.sub (#amount bal, deposit);
 @header [] %>
 
+<div style="border: 1px solid goldenrod; background-color: palegoldenrod;">
+
+<h3>Notice: Google Checkout Is Gone</h3>
+
+<p>Google Checkout shut down in November 2013 so we only have Paypal
+available for processing payments currently. We are in the process of
+selecting a second (and possibly third) payment processor; you can
+contribute to the discussion by <a
+href="http://wiki.hcoop.net/PaymentProcessor2014">visiting the wiki
+discussion</a>.
+
+</div>
+
 <% @payment [] %>
 
 <h3><a href="money">Your recent account activity</a></h3>
 
+<% ref running = showBal %>
 <table>
-<tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> </tr>
+<tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> <td><b>Balance</b></td></tr>
 <% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %>
-<tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td> </tr>
-<% end %>
+<tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td>
+<td><% running %></td></tr>
+<% running := Util.sub (running, amount)
+end %>
 </table>
-<b>Balance: $<% Util.sub (#amount bal, deposit) %></b><br>
+<a href="money?lookback=inf">Show all transactions</a><br>
+<b>Balance: $<% showBal %></b><br>
 <b>Deposit: $<% deposit %></b> (3 months of dues at the minimal <a href="pledge">pledge level</a>)
 
+<h3>Pending Stripe Payments</h3>
+
+<table>
+<tr><td><strong>Date</strong></td><td><strong>Net Amount</strong> (After Fees)</td></tr>
+<% foreach stripePmt in Money.listUserPendingStripePayments
+       (Init.getUserId () ) do %>
+<tr>
+  <td><% #paid_on stripePmt %></td>
+  <td>$<% #net stripePmt %></td>
+</tr>
+<% end %>
+</table>
+
+
 <!--b>Balance: $<% #amount bal %></b-->
 
 <% val polls = Poll.listCurrentPolls ();