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 [] %>
-
+<% @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: $<% #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
+
+<% end;
-<% @footer [] %>
\ No newline at end of file
+@footer [] %>