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 [] %>
+<% ref running = showBal %>
- Date | Description | Amount |
+ Date | Description | Amount | Balance |
<% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %>
- <% #d trn %> | <% Web.html (#descr trn) %> | <% amount %>/<% #amount trn %> |
-<% end %>
+ <% #d trn %> | <% Web.html (#descr trn) %> | <% amount %>/<% #amount trn %> |
+<% running %> |
+<% running := Util.sub (running, amount)
+end %>
-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
+
+<% end;
+
@footer [] %>