Commit | Line | Data |
---|---|---|
e68ddb80 AC |
1 | <% val you = Init.getUser(); |
2 | val bal = Balance.lookupBalance (#bal you); | |
3 | @header [] %> | |
208e2cbc | 4 | |
e68ddb80 | 5 | <h3><b><a href="money">Your recent account activity</a></b></h3> |
f49e1088 AC |
6 | |
7 | <table> | |
8 | <tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> </tr> | |
9 | <% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %> | |
10 | <tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td> </tr> | |
11 | <% end %> | |
12 | </table> | |
e68ddb80 | 13 | <b>Balance: $<% #amount bal %></b> |
208e2cbc | 14 | |
56dbfc30 AC |
15 | <h3><b><a href="poll">Current polls</a></b></h3> |
16 | ||
17 | <% foreach pol in Poll.listCurrentPolls () do %> | |
18 | <li> <a href="poll?id=<% #id pol %>"><% Web.html (#title pol) %></a> | |
19 | <% if Poll.takingVotes pol then %><a href="poll?vote=<% #id pol %>">[VOTE]</a><% end %> | |
20 | (<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)</li> | |
21 | <% end %> | |
22 | ||
5d851d7c AC |
23 | <h3><b><a href="support">Open support issues</a></b></h3> |
24 | ||
25 | <% foreach (name, issue) in Support.listOpenIssues (#id you) do %> | |
26 | <a href="user?id=<% #usr issue %>"><% name %></a>: <a href="issue?cat=<% #cat issue %>&id=<% #id issue %>"><% Web.html (#title issue) %></a> | |
27 | <% switch #status issue of | |
28 | Support.NEW => %>(New)<% | |
29 | | Support.PENDING => %>(Pending)<% | |
30 | | Support.CLOSED => %>(Closed)<% | |
31 | end %> | |
32 | <br> | |
33 | <% end %> | |
34 | ||
208e2cbc | 35 | <% @footer [] %> |