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