Commit | Line | Data |
---|---|---|
e68ddb80 AC |
1 | <% val you = Init.getUser(); |
2 | val bal = Balance.lookupBalance (#bal you); | |
466c5944 | 3 | val deposit = Balance.depositAmount (#id bal); |
b5dc79ca | 4 | val showBal = Util.sub (#amount bal, deposit); |
e68ddb80 | 5 | @header [] %> |
208e2cbc | 6 | |
cf10853e | 7 | <% @payment [] %> |
17f5503e | 8 | |
b6dd1aaf | 9 | <h3><a href="money">Your recent account activity</a></h3> |
f49e1088 | 10 | |
b5dc79ca | 11 | <% ref running = showBal %> |
f49e1088 | 12 | <table> |
b5dc79ca | 13 | <tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> <td><b>Balance</b></td></tr> |
f49e1088 | 14 | <% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %> |
b5dc79ca AC |
15 | <tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td> |
16 | <td><% running %></tr> | |
17 | <% running := Util.sub (running, amount) | |
18 | end %> | |
f49e1088 | 19 | </table> |
60465e67 | 20 | <a href="money?lookback=inf">Show all transactions</a><br> |
b5dc79ca | 21 | <b>Balance: $<% showBal %></b><br> |
c8abf2d9 | 22 | <b>Deposit: $<% deposit %></b> (3 months of dues at the minimal <a href="pledge">pledge level</a>) |
96bd398e | 23 | |
c8abf2d9 | 24 | <!--b>Balance: $<% #amount bal %></b--> |
208e2cbc | 25 | |
b6dd1aaf AC |
26 | <% val polls = Poll.listCurrentPolls (); |
27 | switch polls of | |
28 | _::_ => %> | |
29 | <h3><a href="poll">Current polls</a></h3> | |
56dbfc30 | 30 | |
b6dd1aaf | 31 | <% foreach pol in polls do %> |
56dbfc30 AC |
32 | <li> <a href="poll?id=<% #id pol %>"><% Web.html (#title pol) %></a> |
33 | <% if Poll.takingVotes pol then %><a href="poll?vote=<% #id pol %>">[VOTE]</a><% end %> | |
34 | (<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)</li> | |
b6dd1aaf AC |
35 | <% end |
36 | end %> | |
56dbfc30 | 37 | |
b6dd1aaf AC |
38 | <% val issues = Support.listOpenIssues (#id you); |
39 | switch issues of | |
40 | _::_ => %> | |
41 | <h3><a href="support">Open support issues</a></h3> | |
5d851d7c | 42 | |
b6dd1aaf | 43 | <% foreach (name, issue) in issues do %> |
5d851d7c AC |
44 | <a href="user?id=<% #usr issue %>"><% name %></a>: <a href="issue?cat=<% #cat issue %>&id=<% #id issue %>"><% Web.html (#title issue) %></a> |
45 | <% switch #status issue of | |
46 | Support.NEW => %>(New)<% | |
47 | | Support.PENDING => %>(Pending)<% | |
48 | | Support.CLOSED => %>(Closed)<% | |
49 | end %> | |
50 | <br> | |
b6dd1aaf | 51 | <% end |
d5f8418b | 52 | end; |
eaa96514 | 53 | |
432aa258 AC |
54 | val {total, vhosts} = Stats.getWebbwUser {user = Init.getUserName (), last = 0}; |
55 | switch vhosts of | |
56 | _ :: _ => | |
57 | %><h3>Your web traffic this month</h3> | |
58 | <table><tr><th>Site</th> <th>Data transferred (kB)</th></tr><% | |
59 | foreach e in vhosts do %> | |
60 | <tr><td align="right"><a href="<% if #ssl (#host e) then %>https<% else %>http<% end %>://<% #hostname (#host e) %>/"><% #hostname (#host e) %><% if #ssl (#host e) then %> (SSL)<% end %></a> <a href="/webalizer/<% #id (#host e) %>/">[detail]</a></td><td><% #size e %></td></tr> | |
61 | <% end %> | |
62 | </table> | |
63 | <% end; | |
64 | ||
d5f8418b | 65 | @footer [] %> |