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

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: $<% #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

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