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 | |
e5d79494 | 7 | <div style="border: 1px solid goldenrod; background-color: palegoldenrod;"> |
95446a44 | 8 | |
e5d79494 | 9 | <h3>Notice: Google Checkout Is Gone</h3> |
10 | ||
11 | <p>Google Checkout shut down in November 2013 so we only have Paypal | |
12 | available for processing payments currently. We are in the process of | |
13 | selecting a second (and possibly third) payment processor; you can | |
14 | contribute to the discussion by <a | |
15 | href="http://wiki.hcoop.net/PaymentProcessor2014">visiting the wiki | |
16 | discussion</a>. | |
95446a44 | 17 | |
95446a44 CE |
18 | </div> |
19 | ||
cf10853e | 20 | <% @payment [] %> |
17f5503e | 21 | |
b6dd1aaf | 22 | <h3><a href="money">Your recent account activity</a></h3> |
f49e1088 | 23 | |
b5dc79ca | 24 | <% ref running = showBal %> |
f49e1088 | 25 | <table> |
b5dc79ca | 26 | <tr> <td><b>Date</b></td> <td><b>Description</b></td> <td><b>Amount</b></td> <td><b>Balance</b></td></tr> |
f49e1088 | 27 | <% foreach (amount, trn) in Money.listUserTransactionsLimit (Init.getUserId (), 5) do %> |
b5dc79ca AC |
28 | <tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td><% amount %>/<% #amount trn %></td> |
29 | <td><% running %></tr> | |
30 | <% running := Util.sub (running, amount) | |
31 | end %> | |
f49e1088 | 32 | </table> |
60465e67 | 33 | <a href="money?lookback=inf">Show all transactions</a><br> |
b5dc79ca | 34 | <b>Balance: $<% showBal %></b><br> |
c8abf2d9 | 35 | <b>Deposit: $<% deposit %></b> (3 months of dues at the minimal <a href="pledge">pledge level</a>) |
96bd398e | 36 | |
c8abf2d9 | 37 | <!--b>Balance: $<% #amount bal %></b--> |
208e2cbc | 38 | |
b6dd1aaf AC |
39 | <% val polls = Poll.listCurrentPolls (); |
40 | switch polls of | |
41 | _::_ => %> | |
42 | <h3><a href="poll">Current polls</a></h3> | |
56dbfc30 | 43 | |
b6dd1aaf | 44 | <% foreach pol in polls do %> |
56dbfc30 AC |
45 | <li> <a href="poll?id=<% #id pol %>"><% Web.html (#title pol) %></a> |
46 | <% if Poll.takingVotes pol then %><a href="poll?vote=<% #id pol %>">[VOTE]</a><% end %> | |
47 | (<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)</li> | |
b6dd1aaf AC |
48 | <% end |
49 | end %> | |
56dbfc30 | 50 | |
b6dd1aaf AC |
51 | <% val issues = Support.listOpenIssues (#id you); |
52 | switch issues of | |
53 | _::_ => %> | |
54 | <h3><a href="support">Open support issues</a></h3> | |
5d851d7c | 55 | |
b6dd1aaf | 56 | <% foreach (name, issue) in issues do %> |
5d851d7c AC |
57 | <a href="user?id=<% #usr issue %>"><% name %></a>: <a href="issue?cat=<% #cat issue %>&id=<% #id issue %>"><% Web.html (#title issue) %></a> |
58 | <% switch #status issue of | |
59 | Support.NEW => %>(New)<% | |
60 | | Support.PENDING => %>(Pending)<% | |
61 | | Support.CLOSED => %>(Closed)<% | |
62 | end %> | |
63 | <br> | |
b6dd1aaf | 64 | <% end |
d5f8418b | 65 | end; |
eaa96514 | 66 | |
432aa258 AC |
67 | val {total, vhosts} = Stats.getWebbwUser {user = Init.getUserName (), last = 0}; |
68 | switch vhosts of | |
69 | _ :: _ => | |
70 | %><h3>Your web traffic this month</h3> | |
71 | <table><tr><th>Site</th> <th>Data transferred (kB)</th></tr><% | |
72 | foreach e in vhosts do %> | |
73 | <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> | |
74 | <% end %> | |
75 | </table> | |
76 | <% end; | |
77 | ||
d5f8418b | 78 | @footer [] %> |