X-Git-Url: http://git.hcoop.net/hcoop/portal.git/blobdiff_plain/c8abf2d9dff72d41e340aa0f6948c0c7583d736e..13f4f111d192012443342f75f2608a59dad413a2:/portal.mlt diff --git a/portal.mlt b/portal.mlt index 8f0f553..e9d82fe 100644 --- a/portal.mlt +++ b/portal.mlt @@ -1,19 +1,24 @@ <% val you = Init.getUser(); val bal = Balance.lookupBalance (#bal you); val deposit = Balance.depositAmount (#id bal); +val showBal = Util.sub (#amount bal, deposit); @header [] %> <% @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: $<% Util.sub (#amount bal, deposit) %>
+Show all transactions
+Balance: $<% showBal %>
Deposit: $<% deposit %> (3 months of dues at the minimal pledge level) @@ -46,4 +51,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 [] %>