cert: remove obsolete suggestion you need a dedicated IP for TLS
[hcoop/portal.git] / portal.mlt
CommitLineData
e68ddb80
AC
1<% val you = Init.getUser();
2val bal = Balance.lookupBalance (#bal you);
466c5944 3val deposit = Balance.depositAmount (#id bal);
b5dc79ca 4val 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
12available for processing payments currently. We are in the process of
13selecting a second (and possibly third) payment processor; you can
14contribute to the discussion by <a
15href="http://wiki.hcoop.net/PaymentProcessor2014">visiting the wiki
16discussion</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 %>
64264243 25<table class="data">
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 %>
64264243
CE
28<tr> <td><% #d trn %></td> <td><a href="money?trn=<% #id trn %>"><% Web.html (#descr trn) %></a></td> <td style="text-align: right"><% amount %>/<% #amount trn %></td>
29<td style="text-align: right"><% running %></td></tr>
b5dc79ca
AC
30<% running := Util.sub (running, amount)
31end %>
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
f8b39e09
CE
37<h3>Pending Stripe Payments</h3>
38
39<table>
40<tr><td><strong>Date</strong></td><td><strong>Net Amount</strong> (After Fees)</td></tr>
41<% foreach stripePmt in Money.listUserPendingStripePayments
42 (Init.getUserId () ) do %>
43<tr>
44 <td><% #paid_on stripePmt %></td>
64264243 45 <td style="text-align: right">$<% #net stripePmt %></td>
f8b39e09
CE
46</tr>
47<% end %>
48</table>
49
50
c8abf2d9 51<!--b>Balance: $<% #amount bal %></b-->
208e2cbc 52
b6dd1aaf
AC
53<% val polls = Poll.listCurrentPolls ();
54switch polls of
55 _::_ => %>
56<h3><a href="poll">Current polls</a></h3>
56dbfc30 57
b6dd1aaf 58<% foreach pol in polls do %>
56dbfc30
AC
59<li> <a href="poll?id=<% #id pol %>"><% Web.html (#title pol) %></a>
60<% if Poll.takingVotes pol then %><a href="poll?vote=<% #id pol %>">[VOTE]</a><% end %>
61(<% Web.html (#starts pol) %> to <% Web.html (#ends pol) %>)</li>
b6dd1aaf
AC
62<% end
63end %>
56dbfc30 64
b6dd1aaf
AC
65<% val issues = Support.listOpenIssues (#id you);
66switch issues of
67 _::_ => %>
68<h3><a href="support">Open support issues</a></h3>
5d851d7c 69
b6dd1aaf 70<% foreach (name, issue) in issues do %>
5d851d7c
AC
71<a href="user?id=<% #usr issue %>"><% name %></a>: <a href="issue?cat=<% #cat issue %>&id=<% #id issue %>"><% Web.html (#title issue) %></a>
72<% switch #status issue of
73 Support.NEW => %>(New)<%
74 | Support.PENDING => %>(Pending)<%
75 | Support.CLOSED => %>(Closed)<%
76end %>
77<br>
b6dd1aaf 78<% end
d5f8418b 79end;
eaa96514 80
432aa258
AC
81val {total, vhosts} = Stats.getWebbwUser {user = Init.getUserName (), last = 0};
82switch vhosts of
83 _ :: _ =>
84 %><h3>Your web traffic this month</h3>
64264243 85 <table class="data"><tr><th>Site</th> <th>Data transferred (kB)</th></tr><%
432aa258 86 foreach e in vhosts do %>
64264243 87 <tr><td style="text-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 style="text-align: right"><% #size e %></td></tr>
432aa258
AC
88 <% end %>
89 </table>
90<% end;
91
d5f8418b 92@footer [] %>