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 [] %>

Your recent account activity

- - +<% ref running = showBal %> +
Date Description Amount
+ <% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %> - + + +<% running := Util.sub (running, amount) +end %> +
Date Description Amount Balance
<% #d trn %> <% Web.html (#descr trn) %> <% amount %>/<% #amount trn %>
<% #d trn %> <% Web.html (#descr trn) %> <% amount %>/<% #amount trn %><% running %>
+Show all transactions
+Balance: $<% showBal %>
+Deposit: $<% deposit %> (3 months of dues at the minimal pledge level) + +

Pending Stripe Payments

+ + + +<% foreach stripePmt in Money.listUserPendingStripePayments + (Init.getUserId () ) do %> + + + + <% end %>
DateNet Amount (After Fees)
<% #paid_on stripePmt %>$<% #net stripePmt %>
-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

+ <% + foreach e in vhosts do %> + + <% end %> +
Site Data transferred (kB)
<% #hostname (#host e) %><% if #ssl (#host e) then %> (SSL)<% end %> [detail]<% #size e %>
+<% end; + @footer [] %>