Reports for figuring out which accounts to freeze or boot; most of new SSL request...
[bpt/portal.git] / portal.mlt
1 <% val you = Init.getUser();
2 val bal = Balance.lookupBalance (#bal you);
3 val deposit = Balance.depositAmount (#id bal);
4 @header [] %>
5
6 <% @payment [] %>
7
8 <h3><a href="money">Your recent account activity</a></h3>
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>
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>)
18
19 <!--b>Balance: $<% #amount bal %></b-->
20
21 <% val polls = Poll.listCurrentPolls ();
22 switch polls of
23 _::_ => %>
24 <h3><a href="poll">Current polls</a></h3>
25
26 <% foreach pol in polls do %>
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>
30 <% end
31 end %>
32
33 <% val issues = Support.listOpenIssues (#id you);
34 switch issues of
35 _::_ => %>
36 <h3><a href="support">Open support issues</a></h3>
37
38 <% foreach (name, issue) in issues do %>
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)<%
44 end %>
45 <br>
46 <% end
47 end;
48
49 @footer [] %>