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); |
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 (); |
22 | switch 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 |
31 | end %> | |
56dbfc30 | 32 | |
b6dd1aaf AC |
33 | <% val issues = Support.listOpenIssues (#id you); |
34 | switch 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)<% | |
44 | end %> | |
45 | <br> | |
b6dd1aaf | 46 | <% end |
d5f8418b | 47 | end; |
eaa96514 | 48 | |
432aa258 AC |
49 | val {total, vhosts} = Stats.getWebbwUser {user = Init.getUserName (), last = 0}; |
50 | switch vhosts of | |
51 | _ :: _ => | |
52 | %><h3>Your web traffic this month</h3> | |
53 | <table><tr><th>Site</th> <th>Data transferred (kB)</th></tr><% | |
54 | foreach e in vhosts do %> | |
55 | <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> | |
56 | <% end %> | |
57 | </table> | |
58 | <% end; | |
59 | ||
d5f8418b | 60 | @footer [] %> |