X-Git-Url: http://git.hcoop.net/hcoop/portal.git/blobdiff_plain/b251872c7d6e4d65e8a5deafec33949112aa06e5..13f4f111d192012443342f75f2608a59dad413a2:/portal.mlt diff --git a/portal.mlt b/portal.mlt index d03698f..e9d82fe 100644 --- a/portal.mlt +++ b/portal.mlt @@ -1,18 +1,27 @@ <% val you = Init.getUser(); val bal = Balance.lookupBalance (#bal you); +val deposit = Balance.depositAmount (#id bal); +val showBal = Util.sub (#amount bal, deposit); @header [] %> -

Add to your balance with PayPal

+<% @payment [] %>

Your recent account activity

+<% ref running = showBal %> - + <% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %> - -<% end %> + + +<% running := Util.sub (running, amount) +end %>
Date Description Amount
Date Description Amount Balance
<% #d trn %> <% Web.html (#descr trn) %> <% amount %>/<% #amount trn %>
<% #d trn %> <% Web.html (#descr trn) %> <% amount %>/<% #amount trn %><% running %>
-Balance: $<% #amount bal %> +Show all transactions
+Balance: $<% showBal %>
+Deposit: $<% deposit %> (3 months of dues at the minimal pledge level) + + <% val polls = Poll.listCurrentPolls (); switch polls of @@ -40,6 +49,17 @@ switch issues of end %>
<% 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 [] %> \ No newline at end of file +@footer [] %>