Reports for figuring out which accounts to freeze or boot; most of new SSL request...
[bpt/portal.git] / portal.mlt
CommitLineData
e68ddb80
AC
1<% val you = Init.getUser();
2val bal = Balance.lookupBalance (#bal you);
466c5944 3val deposit = Balance.depositAmount (#id bal);
e68ddb80 4@header [] %>
208e2cbc 5
cf10853e 6<% @payment [] %>
17f5503e 7
b6dd1aaf 8<h3><a href="money">Your recent account activity</a></h3>
f49e1088
AC
9
10<table>
11<tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> </tr>
12<% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %>
13<tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td> </tr>
14<% end %>
15</table>
c8abf2d9
AC
16<b>Balance: $<% Util.sub (#amount bal, deposit) %></b><br>
17<b>Deposit: $<% deposit %></b> (3 months of dues at the minimal <a href="pledge">pledge level</a>)
96bd398e 18
c8abf2d9 19<!--b>Balance: $<% #amount bal %></b-->
208e2cbc 20
b6dd1aaf
AC
21<% val polls = Poll.listCurrentPolls ();
22switch polls of
23 _::_ => %>
24<h3><a href="poll">Current polls</a></h3>
56dbfc30 25
b6dd1aaf 26<% foreach pol in polls do %>
56dbfc30
AC
27<li> <a href="poll?id=<% #id pol %>"><% Web.html (#title pol) %></a>
28<% if Poll.takingVotes pol then %><a href="poll?vote=<% #id pol %>">[VOTE]</a><% end %>
29(<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)</li>
b6dd1aaf
AC
30<% end
31end %>
56dbfc30 32
b6dd1aaf
AC
33<% val issues = Support.listOpenIssues (#id you);
34switch issues of
35 _::_ => %>
36<h3><a href="support">Open support issues</a></h3>
5d851d7c 37
b6dd1aaf 38<% foreach (name, issue) in issues do %>
5d851d7c
AC
39<a href="user?id=<% #usr issue %>"><% name %></a>: <a href="issue?cat=<% #cat issue %>&id=<% #id issue %>"><% Web.html (#title issue) %></a>
40<% switch #status issue of
41 Support.NEW => %>(New)<%
42 | Support.PENDING => %>(Pending)<%
43 | Support.CLOSED => %>(Closed)<%
44end %>
45<br>
b6dd1aaf 46<% end
d5f8418b 47end;
eaa96514 48
d5f8418b 49@footer [] %>