X-Git-Url: https://git.hcoop.net/hcoop/portal.git/blobdiff_plain/466c59448d7bb1abee78e7f3f231be194e73b5ea..573def24c0220a72beff4e3f5739a450d83de170:/portal.mlt
diff --git a/portal.mlt b/portal.mlt
index 03d8dbd..f7f303d 100644
--- a/portal.mlt
+++ b/portal.mlt
@@ -1,20 +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 [] %>
+
+
+
Welcome to the Portal On Navajos
+
+
Deleuze
+suffered a hardware failure, and the benefit is that the portal is now
+running on our Debian Wheezy web server. List preferences are
+temporarily non-functional, email admins@hcoop.net if you
+would like to change your hcoop list subscriptions.
+
+
+
<% @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: $<% Util.sub (#amount bal, deposit) %>
-Deposit: $<% deposit %> (3 months of dues at your current pledge level)
+
+
+
<% val polls = Poll.listCurrentPolls ();
switch polls of
@@ -44,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 [] %>