X-Git-Url: http://git.hcoop.net/bpt/portal.git/blobdiff_plain/f49e1088a3c5fbcc48bed202de376b407a23a9ba..4f10deb0bbf3a55737a8ff90ece58890673f6012:/portal.mlt
diff --git a/portal.mlt b/portal.mlt
index c7bce36..3492692 100644
--- a/portal.mlt
+++ b/portal.mlt
@@ -1,6 +1,10 @@
-<% @header [] %>
+<% val you = Init.getUser();
+val bal = Balance.lookupBalance (#bal you);
+@header [] %>
-
Your recent account activity
+<% @payment [] %>
+
+
+Balance: $<% #amount bal %>
+
+<% val polls = Poll.listCurrentPolls ();
+switch polls of
+ _::_ => %>
+
+
+<% foreach pol in polls do %>
+ <% Web.html (#title pol) %>
+<% if Poll.takingVotes pol then %>[VOTE]<% end %>
+(<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)
+<% end
+end %>
+
+<% val issues = Support.listOpenIssues (#id you);
+switch issues of
+ _::_ => %>
+
+
+<% foreach (name, issue) in issues do %>
+<% name %>: <% Web.html (#title issue) %>
+<% switch #status issue of
+ Support.NEW => %>(New)<%
+ | Support.PENDING => %>(Pending)<%
+ | Support.CLOSED => %>(Closed)<%
+end %>
+
+<% end
+end;
-<% @footer [] %>
\ No newline at end of file
+@footer [] %>