X-Git-Url: https://git.hcoop.net/hcoop/portal.git/blobdiff_plain/96bd398ee746f9f2975bc06b24fcbe7e430164fb..10e55875c83d1d44a0b8d31ff1e49cfec843e9a2:/portal.mlt
diff --git a/portal.mlt b/portal.mlt
index 2875bc2..3d19c19 100644
--- a/portal.mlt
+++ b/portal.mlt
@@ -1,22 +1,54 @@
<% val you = Init.getUser();
val bal = Balance.lookupBalance (#bal you);
val deposit = Balance.depositAmount (#id bal);
+val showBal = Util.sub (#amount bal, deposit);
@header [] %>
+
+
+
Notice: Google Checkout Is Gone
+
+
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 visiting the wiki
+discussion.
+
+
+
<% @payment [] %>
-
- Date | Description | Amount |
+<% ref running = showBal %>
+
+ Date | Description | Amount | Balance |
<% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %>
- <% #d trn %> | <% Web.html (#descr trn) %> | <% amount %>/<% #amount trn %> |
+ <% #d trn %> | <% Web.html (#descr trn) %> | <% amount %>/<% #amount trn %> |
+<% running %> |
+<% running := Util.sub (running, amount)
+end %>
+
+Show all transactions
+Balance: $<% showBal %>
+Deposit: $<% deposit %> (3 months of dues at the minimal pledge level)
+
+Pending Stripe Payments
+
+
+Date | Net Amount (After Fees) |
+<% foreach stripePmt in Money.listUserPendingStripePayments
+ (Init.getUserId () ) do %>
+
+ <% #paid_on stripePmt %> |
+ $<% #net stripePmt %> |
+
<% end %>
-
-Balance: $<% #amount bal %>
+
+
<% val polls = Poll.listCurrentPolls ();
switch polls of
@@ -46,4 +78,15 @@ end %>
<% end
end;
+val {total, vhosts} = Stats.getWebbwUser {user = Init.getUserName (), last = 0};
+switch vhosts of
+ _ :: _ =>
+ %>Your web traffic this month
+
+<% end;
+
@footer [] %>